Css3 选择器 –结构性伪类

lE:nth-child(n)  表示E父元素中的第n个子节点 •p:nth-child(odd){background:red}/*匹配奇数行*/ •p:nth-child(even){background:red}/*匹配偶数行*/ •p:nth-child(2n){background:red} lE:nth-last-child(n) 表示E父元素中的第n个子节点,从后向前计算 lE:nt
相关文章
相关标签/搜索