-3
我有很多垂直線在<a>
鏈接之前,但我想隱藏第三行。顯示:無僞元素?
這裏是我的CSS我<a>
前:
.header-social a:before {
//line style
}
我一直在使用nth-child()
嘗試過,但我不知道如何使用僞元素與nth-child()
。
.header-social a:before:nth-child(4) {
display:none;
}
不知道我怎麼能進入比我已經有的任何更多的細節。我需要JavaScript嗎?
把你完整的代碼在這裏。 – JeetDaloneboy
你可以顯示你的html結構嗎?您需要社交網絡上的第n個孩子 – Pete
如果沒有您的HTML,我們只能提供(受過教育的)猜測。 –