<style>
p:last-child{
background-color: #ccc;
}
div>:not(p){
color: blue;
}
div p:not(:last-child){
border: 1px solid #ccc;
}
</style>
<div class="wrap">
<h3>title</h3>
<p>one</p>
<p>two</p>
<p>three</p>
</div>
css伪类选择器
原文作者:Cribug8080
原文地址: https://segmentfault.com/a/1190000019773259
本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
原文地址: https://segmentfault.com/a/1190000019773259
本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。