css伪类选择器
文章目录
<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>
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论