例. 下面的示例插入的價值href各個環節後括號中的屬性:. a:after { content: " (" attr(href) ")"; }. 試一試». 定義和用法. 該attr()函數返回所選元素的屬性值。
確定! 回上一頁