此选择器能够匹配指定元素后面紧邻的兄弟元素。
代码实例如下:
蚂蚁部落 #items{ width:900px; height:auto; margin:0 auto; padding:5px 0; clear:both;}#items ul, #items li{ list-style:none;}#items li{ width:500px; height:28px; text-align:left; padding-left: 0px; line-height:28px; border-bottom:dashed 1px #CCC; cursor:pointer;}.first + li{ color:red;}蚂蚁部落欢迎您,只有努力奋斗才会有美好的未来 没有任何人一开始就是高手,必须要好好学习 本站的url地址是softwhy.com 每一天都是新的,所以要好好真心当前时间 div css教程里面有大量详实的代码
查看更多关于CSS选择器加号+的作用是什么_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did110915