私はこのコードを持っていますが、実際の行を交互に表示するのにうまく動作しますが、「奇妙な」行を表示します。ホバーのCSSはjQueryで奇数行にのみ適用されます
<script type="text/javascript">
$(document).ready(function(){
//jQuery ready is quicker than onload
$(".stripeMe tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
$(".stripeMe tr:even").addClass("alt");
});
これは私が
#table tr.over td{background: #bcd4ec;}
#table tr.alt td {background: #ecf6fc;}
任意のアイデアを使用しているCSSは次のとおりです。
私は、次のコードを使用していますか?
ブラウザ間違い 'サポート:even'、わずか数サポート':hover'それは 'A'タグ – Neal
ではありませんあなたはこれをサポートするリンクを提供することはできますか? IE7 +以上のものはアンカー以外の要素に ':hover'をサポートしています:http://www.quirksmode.org/css/contents.html – Rob
IEは間違いなく**サポートしていません: 。 – Neal