2008年7月 5日
:first-childを使う
:first-childを使って作業効率をあげる。
ヨモツネット:IE 5.5 と 6 で :first-childを参考
どのブラウザでも、一番最初のborderだけ、表示しないようにする。
body#kids-club table.item tr{
border-top:1px:solid #333;
}
body#kids-club table.item tr:first-child{
border-top:none;
}
body#kids-club table.item tr.first-child{ /*IE-expression (first-child) */
border-top:none;
}
body#kids-club table.item tr{ /* IE-expression (first-child) */
behavior: expression(
this.className += (this.previousSibling == null) ? " first-child" : "",
this.style.behavior = "none"
);
}
トラックバック(0)
このブログ記事を参照しているブログ一覧: :first-childを使う
このブログ記事に対するトラックバックURL: http://magic-happens.net/mt/mt-tb.cgi/17
コメントする