源代碼
點擊運行
<!DOCTYPE html> <html> <head> <style> a:after {content: " (" attr(href) ")";} </style> </head> <body> <p><a href="http://www.sharebody.com">教程</a> - 免費的編程學習網站。</p> <p><b>注意:</b>僅當 !DOCTYPE已經定義 IE8支持 content屬性</p> </body> </html>
運行結果