English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Este artigo introduce o atributo open no HTML, um atributo booleano, demonstrando como usar o atributo open no HTML, compatibilidade do navegador, definição sintática e detalhes dos valores do atributo.
um aberto/Elemento <detalhes> visível:
<!DOCTYPE html> <html> <cabeçalho> <meta charset="utf-8"> <título>Uso do atributo open no HTML <detalhes> abertos-Tutorial Básico(oldtoolbag.com)</título> </cabeçalho> <corpo> <detalhes abertos> <resumo>Direitos Autorais 2009-2020.</resumo> <p> - por oldtoolbag.com. Todos os Direitos Reservados.</p> <p>Basic tutorial website provides you with IT basic tutorial learning resources, as well as basic knowledge. Learn the basics, and you can go further.</p> </details> <p>details Default open.</p> </body> </html>Test and see ‹/›
IEFirefoxOperaChromeSafari
Currently only Chrome and Safari 6Supports the open attribute.
The open attribute is a boolean (boolean) attribute.
The open attribute specifies that the details should be visible on the HTML page.
<details> tag is HTML5 New tags.
In XHTML, attributes are not allowed to be abbreviated, the open attribute must be defined as: <details open="open">.
<details open>