在css3中not()选择器有什么用(CSS3,not(),web开发)

时间:2024-05-10 08:07:07 作者 : 石家庄SEO 分类 : web开发
  • TAG :

  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>

在css3中not()选择器有什么用在css3中not()选择器有什么用

 </div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:在css3中not()选择器有什么用的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:css中怎么设置a标签的大小下一篇:

8 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18