<div class="icons">
<a href="https://www.facebook.com/" class="fa fa-facebook" alt="facebook" title="Facebook"></a>
<a href="https://twitter.com/" class="fa fa-twitter" alt="twitter" title="Twitter"></a>
</div>
我想將每個圖標分別放在div中,我怎樣才能在CSS中單獨選擇圖標? .icons a {
編輯div中的所有圖標,所以我無法控制定位。如何在CSS中選擇此特定行?
你問如何選擇一個元素的直接子。我發現你是新手,所以請確保你在提問之前通過先前的問題進行搜索。 –
爲什麼你把圖標放在一個div中,如果你想分開放置它們呢? –