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;
相关文章
相关标签/搜索