English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Dieser Artikel beschreibt die Verwendung des HTML-command-label-Attributs, zeigt Online-Beispiele, wie man das HTML-command-label-Attribut verwendet, die Kompatibilität des Browsers, die Syntaxdefinition und detaillierte Informationen über seine Attributwerte, das notwendige Attribut label legt den Namen des command fest, der dem Benutzer angezeigt wird.
Ein <command>-Element mit <label>:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <command> <label> Attribut verwenden-Grund教程(oldtoolbag.com)</title> <script> function save() { alert("Einige JavaScript..."); } </script> </head> <body> <menu> <command type="command" label="Save changes" onclick="save()">Save</command> </menu> <p><b>Attention:</b>Currently, almost all mainstream browsers do not support the label attribute.</p> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
Currently, almost all mainstream browsers do not support the label attribute.
The label attribute is required to define the name of the command, which is used to display to the user.
<command> Tag is a new tag in HTML5 new tag in
<command label="text">
value | description |
---|---|
text | Define the visible tags for command. |