菜鸟学堂
在线运行
源代码
<!DOCTYPE html> <html> <head> <style> a:after {content: " (" attr(href) ")";} </style> </head> <body> <p><a href="http://edu.jb51.net/">edu.jb51.net</a> contains free tutorials and references.</p> <p><b>注意:</b>仅当 !DOCTYPE已经定义 IE8支持 content属性</p> </body> </html>
运行结果
在线运行
菜鸟学堂 edu.jb51.net