English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Dieser Artikel beschreibt die Verwendung der HTML command disabled Eigenschaft, zeigt Online-Beispiele, wie man die Eigenschaft verwendet, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen über die Eigenschaftswerte.
Ein deaktivierter <command> - Element:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Verwendung der HTML <command> disabled Eigenschaft-Grund教程(oldtoolbag.com)</title> <script> function setAlign() { alert("Einige JavaScript..."); } </script> </head> <body> <menu> <command type="radio" label="Links" onclick="setAlign(&"39;left')">Links</command> <command type="radio" label="Mitte" disabled onclick="setAlign(&"39;center')">Mitte</command> <command type="radio" label="Rechts" onclick="setAlign(&"39;right')">Rechts</command> </menu> <p><b>Hinweis:</b> Internet Explorer 9 Supports the disabled attribute.</p> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
Currently, almost all mainstream browsers do not support the disabled attribute.
Note:Internet Explorer 9 supported the disabled attribute (only IE9 supported, neither previous nor later versions support it).
The disabled attribute is a boolean attribute.
The disabled attribute specifies that the command element should be disabled.
<command> Tag is HTML5 with new tags.
In XHTML, attribute shorthand is prohibited, the disabled attribute must be defined as <command disabled="disabled">.
<command disabled>