私は:last-child
で最後の寒さを選択することができます知っています。これは最後の3つの子を選択してください
<div id="something">
<a href="images/x.jpg" ><a/>
<a href="images/x.jpg" ><a/>
<!-- here some more
and than i need to select these -->
<a href="images/x.jpg" ><a/>
<a href="images/x.jpg" ><a/>
<a href="images/x.jpg" ><a/>
</div>
を働いているか、今私は:nth-last-child
と呼ばれるものがある知っている、唯一の問題は、私は:nth-child
を使用カントので、お子様の量が分からないのです、最後の3つのチャイルズを選択する必要がありますが、私は本当に理解カント今私はこのようないくつかのことを必要とする:
#something a:last-child{
/* only now it needs to select 2 more a's that are before this child */
}
'返します:n番目の最後-child'、'と基本的に同じ:n番目の-child'が、カウント最後から最初に私の知る限りにします。 –
今問題は、最後の3を選択する必要があるということです。 – Ivo
P.S.タグを閉じることは '