标签:
代码:
<div id="topAd">
<div class="SC">
<div class="del">...</div>
</div>
<div class="SC">
<div class="del">...</div>
</div>
<div class="SC">
<div class="del">...</div>
</div>
</div>
实现#topAd下的第一个子元素中的.del隐藏
1.css实现
#topAd .SC:first-child .del{
display:none;
}
2.juery实现
<script>
$(‘#topAd > .SC-refund‘).eq(0).find(‘.del‘).hide();
</script>
标签:
原文地址:http://www.cnblogs.com/phoooob/p/4483786.html