我正在完成一些Wordpress网页,我想(用CSS
)样式化Posts
页面中的条目。Wordpress创建了这个:
<div class="entry">
页面中有大量的这些元素,为了将它们分开,我在条目的底部使用了边框。问题是我不想让这个边框出现在最后一个入口上。在CSS中可以做类似的事情吗?(请注意,它不是一个列表,所以我不能使用伪类)
这是我的CSS,它非常简单:
.entry{ border-bottom: 1px solid yellow; }
HTML:
<div id="wrapper">
<br />
there are loads of code
<br />
<div class="entry">bunch of code there</div>
<br />
<div class="entry">bunch of code there</div>
<br />
<div class="entry">bunch of code there</div>
<br />
another huge code
<br />
</div>
提前感谢您的帮助。
https://stackoverflow.com/questions/12959655
复制相似问题