css最后一个子选择器:选择特定类的最后一个元素,而不是父类内部的最后一个子元素?
<div class="commentList"> <article class="comment " id="com21"></article> <article class="comment " id="com20"></article> <article class="comment " id="com19"></article> <div class="something"> hello </div></div>
#com19 ?
.comment {
width:470px;
border-bottom:1px dotted #f0f0f0;
margin-bottom:10px;}.comment:last-child {
border-bottom:none;
margin-bottom:0;}div.somethingarticle.comment?
扬帆大鱼
尚方宝剑之说
随时随地看视频慕课网APP