HTML command icon 屬性
實例
代表<command> 元素的圖像:
<menu>
<command type="radio" label="Left" icon="left.png"
onclick="setAlign('left')">Left</command>
</menu>
<command type="radio" label="Left" icon="left.png"
onclick="setAlign('left')">Left</command>
</menu>
嘗試一下»
瀏覽器支持
目前,幾乎所有的主流瀏覽器都不支持icon 屬性。
定義和用法
icon 屬性規定代表command 元素的圖像。
HTML 4.01 與HTML5之間的差異
<command> 標籤是HTML5 中的新標籤。
語法
<command icon="URL">
屬性值
值 | 描述 |
---|---|
URL | 规定代表 command 的图像。 可能的值:
|
HTML <command>標籤