參考文章

http://www.permadi.com/tutorial/cssHighlightTableRow/index.html

 

首先:設定你的style

<STYLE>

</style>

 

接下來,在你要標示的table裡面添加

<tr style="background-color:#CCCCCC;" 
onMouseOver="this.className='highlight'" onMouseOut="this.className='normal'
">

 

 

再來講jQuery的方法

這是參考

http://stackoverflow.com/questions/759475/jquery-highlight-table-row

 

jQuery(document).ready(function() { 

   $
("#storeListTable tbody tr").hover(
     
function() {  // mouseover
          $
(this).addClass('highlight');
     
},
     
function() {  // mouseout
          $
(this).removeClass('highlight');
     
}
   
);
});

 

arrow
arrow
    全站熱搜

    包爾伯 發表在 痞客邦 留言(1) 人氣()