CSS奇怪但偶爾實用的技巧

僞元素獲取自定義的標籤屬性 你是否還在爲僞元素content內容發愁呢?,試試 content:attr(data); 吧…css nth-of-type 選中指定範圍的元素web :nth-of-type(2n) 等同於 :nth-child(odd) :nth-of-type(2n+1) 等同於 :nth-child(even) 文字兩端對齊 text-align-last: justify;
相關文章
相關標籤/搜索