CSS3 :not() 制作最后一行li不添加边框

来源:http://itssh.cn/post/925.html

CSS3新增的:not()伪类选择符,匹配不含有选择符的元素。假定有个列表,每个列表项都有一条底边线,但是最后一项不需要底边线,案例如下:





使用:not() 最后一行li不添加边框





 
  • 列表1
  • 列表2
  • 列表3
  • 列表4
  • 列表5

来源:http://itssh.cn/post/925.html

你可能感兴趣的:(CSS3 :not() 制作最后一行li不添加边框)