在css3中not()选择器有什么用
导读:本文共789字符,通常情况下阅读需要3分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: not()选择器 在CSS3中,:not()选择器中主要用于选取某个元素之外的所有元素。这是veryvery实用的一个选择器。 举例: <htmlxmlns="http://www.w3.org/1999/xhtml"> <head> <t... ...
目录
(为您整理了一些要点),点击可以直达。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>
</div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
在css3中not()选择器有什么用的详细内容,希望对您有所帮助,信息来源于网络。