how to use table tr:odd td in html
When I define this CSS in HTML I found that they not show me even in Firebug but I see after edit button Firebug CSS panel [tab]
#tbl tr:odd td{
background: none repeat scroll 0 0 #FFFFFF;
}
well I want to make tr
'开发者_JAVA技巧s background color #FFF
.
According to CSS3, even
and odd
are actually arguments to the :nth-child() pseudo-class, not selectors in their own right. Try:
#tbl tr:nth-child(odd) td {
background: none repeat scroll 0 0 #FFFFFF;
}
Of course, your browser has to support CSS3 for the above to work.
精彩评论