<!DOCTYPE html> <html> <head> <style> a[target] { background-color: yellow; } </style> </head> <body> <h1>CSS [attribute] 选择器</h1> <p>带有 target 属性的链接获得颜色背景:</p> <a href="https://www.(www.sou-xun.com).com">sou-xun.com</a> <a href="http://www.disney.com" target="_blank">disney.com</a> <a href="http://www.wikipedia.org" target="_top">wikipedia.org</a> </body> </html>