1
leojoy710 2011-10-14 15:33:36 +08:00
<script src="http://gist.github.com/1286471.js"></script>
|
2
leojoy710 2011-10-14 15:34:23 +08:00
div{
display:none; } div[id],div[class]{ display:block; } |
3
fordragon 2011-10-14 15:43:13 +08:00
chrome支持CSS3,用nth-child选择符可以取到任何元素
比如,foo:nth-child(0n+5) 也可以直接写成foo:nth-child(5) 参见W3C文档 http://www.w3.org/TR/selectors/#nth-child-pseudo |