English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Dieser Artikel beschreibt die HTML-Command-Icon-Eigenschaft, die das Bild regelt, das das <command>-Element darstellt, zeigt eine Online-Beispiel, wie man die HTML-Command-Icon-Eigenschaft verwendet, die Kompatibilität des Browsers, die Syntaxdefinition und die detaillierten Informationen zu seinen Eigenschaftswerten usw.
Stellt das Bild dar, das den <command>-Element darstellt:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <command> Icon-Eigenschaft verwenden-Grund教程(oldtoolbag.com)</title> <script> function setAlign() { alert("Some JavaScript...."); } </script> </head> <body> <menu> <command type="radio" label="Left" icon="left.png" onclick="setAlign(&"39;left');Left</command> <command type="radio" label="Center" icon="center.png" onclick="setAlign(&"39;center');Center</command> <command type="radio" label="Right" icon="right.png" onclick="setAlign(&"39;right')">Right</command> </menu> <p><b>注意:</b>目前,几乎所有的主流浏览器都不支持 icon 属性。</p> </body> </html>测试看看 ‹/›
IEFirefoxOperaChromeSafari
目前,几乎所有的主流浏览器都不支持 icon 属性。
icon 属性规定代表 command 元素的图像。
<command> 标签是 HTML5 中的新标签。
<command icon="URL">
值 | 描述 |
---|---|
URL | 规定代表 command 的图像。 可能的值:
|