<div class="codetitle"> <span><a style="CURSOR: pointer" data="15694" class="copybut" id="copybut15694" onclick="doCopy('code15694')"><u>複製程式碼</u></a></span>如下程式碼:</div> <div class="codebody" id="code15694"> <br>$('# tr :not (:has("th"))').hover(function () { <br>$bg = $(this).css('背景顏色'); <br>$(this).css( '背景顏色', '#ffc4c6'); <br>}, <br>function () { <br>$(this).css('背景顏色', $bg); <br><br> </div>