Tek bir bağlantı etiketi, çift etiketin kenar boşluğu sağındaki css özelliğini alıyor. Etiketleri üç kez kontrol ettim ve aslında sol alt satırda ([Live] etiketli) tek bir öğe. Bu neden oluyor ve nasıl düzeltebilirim? HTML:Neden çift etiketin css özelliğini alan tek linkli bir etiket var?
<div className="thumbnails">
<span className="question">A selection of work I have pushed into the Github ether:</span><br />
<img src="./images/entente-logo.png" />
<img src="./images/ski-free-grab.png" />
<img src="./images/instapixies-grab.png" />
<br />
<a href="#">[Live]</a><a href="#">[Code]</a>
<a href="#">[Live]</a><a href="#">[Code]</a>
<a href="#">[Live]</a><a href="#">[Code]</a>
<br />
<img src="./images/secretsnowman-grab.png" />
<img src="./images/gameoflife-grab.png" />
<span className="curly-brax">{An_ORM}</span>
<br />
<a href="#">[Live]</a><a href="#">[Code]</a>
<a href="#" /><a href="#">[Code]</a>
<a href="#" /><a href="#">[Code]</a>
<br />
</div>
CSS:
.thumbnails a:nth-child(even) {
margin-right: 40px;
}
.thumbnails a {
width: 110px;
height: 42px;
padding-left: 20px;
}
a {
text-decoration: none;
color: black;
padding: 10px 14px;
transition: all .5s ease-out;
}
[:nth-child(even)
sözde seçici göreceli hatta elemanları saymak için gidiyor çünkü tek çapa etiketleri marjı alıyorsanız
HTML sağlayabilir lütfen? – EoghanTadhg
[İşte bir keman] (https://jsfiddle.net/er2LLgf1/) kodunuzun en temel anlamıyla tasarlandığı gibi çalışıyor. Muhtemelen başka bir yerden gelen bir stilin olması muhtemeldir. “bile” gönüllü olmayan bir nth-çocuk tarzı olmayacak. –
öğesi hangi garip “kenar” alıyor? –