not()选择器
在CSS3中,:not()选择器中主要用于选取某个元素之外的所有元素。这是veryvery实用的一个选择器。
举例:
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<title>CSS3:not()选择器</title>
<styletype="text/css">
*{padding:0;margin:0;}
ul{list-style-type:none;}
ulli:not(.first)
{
color:red;
}
</style>
</head>
<body>
<ul>
<liclass="first">php中文网</li>
<li>php中文网</li>
<li>php中文网</li>
<li>php中文网</li>
</ul>
</body>
</html>


本文转载自中文网


本文转载自中文网
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/css3-style/c56588.shtml