HTML <command> icon 属性
标签" href="tag-main.html"><main>
<map>
<mark>
<menu>
<meta>
<meter>
<nav>
<noframes>
<noscript>
<object>
<ol>
<optgroup>
<option>
<output>
<p>
<param>
<pre>
<html>
<picture>
<progress>
<q>
<rp>
<rt>
<ruby>
<s>
<samp>
<script>
<section>
<select>
<small>
<source>
<span>
<strike>
<strong>
<style>
<sub>
<summary>
<sup>
<table>
<tbody>
<td>
<textarea>
< template>
<tfoot>
<th>
<thead>
<time>
<title>
<tr>
<track>
<tt>
<u>
<ul>
<var>
<video>
<wbr>
HTML <command> icon 属性
实例
代表 <command> 元素的图像:
<menu>
<command type="radio" label="Left" icon="left.png"
>Left</command>
</menu>
<command type="radio" label="Left" icon="left.png"
>Left</command>
</menu>
浏览器支持
目前,几乎所有的主流浏览器都不支持 icon 属性。
定义和用法
icon 属性规定代表 command 元素的图像。
HTML 4.01 与 HTML5之间的差异
<command> 标签是 HTML5 中的新标签。
语法
<command icon="URL">
属性值
| 值 | 描述 |
|---|---|
| URL | 规定代表 command 的图像。 可能的值:
|
HTML <command> 标签