紧急求助 关于content
我的代码是:
<style>
a:link:after,
a:visited:after {
content: " (" attr(href) ") ";
font-size: 90%;
}
</style>
<body>
<a href="http://foo.bar.com">link</a>
</body>
想要的效果是 link(http://foo.bar.com) 就是在link 后面显示出href中的内容.
但是现在不出效果 是我的代码有问题么? 我在网上找了些,代码都查不多,试了也不出效果.
如果大家有什么好的方法,也可以说说.
要求是用CSS做,不用javascript做.
我想要详细点的代码,麻烦大家了. 谢谢!~~~~