h5css样式
兼容性前缀: 谷歌:webkit 火狐:moz ie:ms 欧鹏:o选择器: 属性选择器: * = 包含 {href * = 'www'} ^ = 以什么开头 $ = 以什么结尾 伪类选择器: 第一个:first-of-type 最后一个:last-of-type 第几个:nth-of-type() 选中前n个:nth-of-type(-n) 选中后5个:nth-of-type(n + 5) 第4个到第8个::nth-of-type(-n + 8):nth-of-type(n + 4) 奇数个:nth-of-type(2n + 1)odd 偶数:nth-of-type(2n)even子级: child:first-child :last-child :nth-child 空的元素:empty 除了:not() 可用的::not(:disabled) / :enabled 禁用的::disabled 获得焦点::focus 当前激活元素::target选项卡实例:<a href="#p1">123123</a><a href="#p2">123123</a><a href="#p3">123123</a><p id="p1">sadadsada23</p><p id="p2">3123123123</p><p id="p3">31asfegerg123</p> 同级 后一个:+