English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Representa los elementos que tienen el atributo nombrado attribute y el valor de atributo "value".
Manual de referencia de selector CSS completo
Seleccione todos los elementos a que usen target = "_blank"
!DOCTYPE html <html> <title>Base Tutorial Net (oldtoolbag.com)<//title> <head> <style> a[target=_blank] { background-color:blue; color:#ffffff; } </style> </head> <body> <p>Los enlaces con la propiedad target = "_blank" se rellenarán con un fondo azul:</p> <a href="//es.oldtoolbag.com">oldtoolbag.com</a> <a href="//www.baidu.com" target="_blank">baidu.com</a> <a href="//www.pcjson.com" target="_top">pcjson.com</a> <p><b>Nota</b> Para que [<i> attribute </i>] En IE8Para ejecutarse en versiones anteriores a IE6, debe declararse DOCTYPE.</ p> </body> </html>Verifique aquí ‹/›
[attribute=value] Selector se utiliza para seleccionar elementos que tienen atributo y valor especificados.
IEFirefoxOperaChromeSafari
Todos los navegadores principales admiten [attribute=value] Selector.
Nota: [attribute=value] En IE8En IE, debe declararse <!DOCTYPE>
Tutorial CSS: Selector de atributo CSS