为什么文章的行为与涉及最后一个孩子的 div 不同
HTML
<div class="parent">
<div class="example">111</div>
<div class="example">111</div>
<div class="example">111</div>
<div class="example">111</div>
</div>
<br>
<div class="parent2">
<article class="example">111</div>
<article class="example">111</div>
<article class="example">111</div>
<article class="example">111</div>
</div>
CSS
.parent .example{ background-color: red;}
.parent .example:last-child{background-color: yellow;}
.parent2 .example{ background-color: red;}
.parent2 .example:last-child{background-color: yellow;}
演示:http: //jsfiddle.net/chLLa/1/