摘要:
伪类选择器1.first-child:匹配父类元素下的第一个子元素。div > a:first-child; 2.last-child:匹配父类元素下的最后一个子元素。 3.nth-child(n):匹配父类元素下的第几个子元素,odd为奇数,even为偶数,或者用n的表达式来取元素,如2n+1。 阅读全文
posted @ 2018-06-25 15:44
想养猫的通信狗
阅读(300)
评论(0)
推荐(0)
摘要:
属性选择器: 1.Element[attribute]:选择带有某个属性的元素:input[type]. 2.Element[attribute="value"]选择带有某个值的属性的元素:input[type="email"]. 3.Element[attribute~="value"]:选择属性 阅读全文
posted @ 2018-06-25 10:59
想养猫的通信狗
阅读(186)
评论(0)
推荐(0)
浙公网安备 33010602011771号