编辑下面的代码:【加编码】
<html> <head> <style> a[target=_blank] { background-color:yellow; } </style> </head> <body> <p>The link with target="_blank" gets a yellow background:</p> <a href="/">ziqiangxuetang.com</a> <a href="http://www.disney.com" target="_blank">disney.com</a> <a href="http://www.wikipedia.org" target="_top">wikipedia.org</a> <p><b>Note:</b> For [<i>attribute</i>] to work in IE8 and earlier, a DOCTYPE must be declared.</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂