我的代码:
<div class="allegati-item">
<div class="allegati-titolo">Download</div>
<a class="allegati-link" href="/documenti/DocumentoTest.pdf">Link1</a>
<a class="allegati-link" href="/documenti/DocumentoTest.pdf">Link2</a>
</div>
.allegati-link
{
border-top:1px solid #FF0000;
display:block;
margin-bottom:4px;
}
.allegati-item a.allegati-link:first-child
{
border:0;
}
我想删除第一个allegati-link
元素中的边框,但是由于在它之前有一个 div,在里面allegati-item
,似乎这不可能?