這個問題是關於ListItems的突出顯示。如何保留列表元素單擊它後突出顯示?
我使用以下類強調列表項目。
ul.category_list li {
background: none repeat scroll 0 0 #B73737;
border-bottom: 1px solid #CCCCCC;
color: #953131;
display: block;
height: 29px;
width: 242px;
}
ul.category_list li a:link,ul.category_list a:visited {
display: block; width: 227px; height: 18px; padding: 5px 0 6px 15px;
background: #fff; text-decoration: none; color: #666; }
ul.category_list li a:hover {
display: block; width: 227px; height: 18px; padding: 5px 0 6px 15px;
background: #e5e5e5 url(../images/disc_apps/nav_over.jpg) no-repeat; text-decoration: none; color: #666; }
ul.category_list li a:active {
display: block; width: 227px; height: 18px; padding: 5px 0 6px 15px;
background: #e5e5e5; text-decoration: none; color: #666; }
參照本工作示例現在,我想的是,在點擊的元素應該保持高亮顯示,除非我點擊其他element.Currently情況並非如此。請幫助我。如果jquery有任何可能的話請讓我知道。
謝謝
您的jsfiddle文章缺少callGetApplicationDetails js方法的定義。 – Chandu 2011-04-13 17:51:56