<command> 标签
<command> 标签可以定义用户可能调用的命令(比如单选按钮、复选框或按钮)。
当使用 <menu> 元素时,command 元素将作为菜单或者工具栏的一部分显示出来。但是,用 command 规定键盘快捷键时,command元素能被放置在页面的任何位置,但元素不可见。
<command> 标签HTML5 中的新属性
| 属性 | 值 | 描述 |
|---|---|---|
| checked | checked | 定义是否被选中。仅用于 radio 或 checkbox 类型。 |
| disabled | disabled | 定义 command 是否可用。 |
| icon | url | 定义作为 command 来显示的图像的 url。 |
| label | text | 为 command 定义可见的 label。 |
| radiogroup | groupname | 定义 command 所属的组名。仅在类型为 radio 时使用。 |
| type | checkbox command radio |
定义该 command 的类型。默认是 "command"。 |
全局属性
<command> 标签支持 HTML 中的全局属性。
事件属性
<command> 标签支持 HTML 中的事件属性。

浙公网安备 33010602011771号