实例. 下面的例子在每个链接后的括号中插入href 属性的值: a:after { content: " (" attr(href) ")"; }. 亲自试一试. 定义和用法. attr() 函数返回所选元素的属性值。
確定! 回上一頁