type
            收藏:0  
            阅读:51
        
        
        HTML <command> type 属性
实例
一个类型为 "command" 的 <command> 元素:
		<menu>
<command type="command" label="Save" onclick="save()">Save</command>
</menu>
<command type="command" label="Save" onclick="save()">Save</command>
</menu>
浏览器支持
	![]()
![]()
![]()
![]()
 
目前,几乎所有的主流浏览器都不支持 type 属性。
注意:Internet Explorer 9 支持 type 属性(只有 IE9 支持,之前或者之后的版本都不支持)。但是,它只支持 "command" 类型。
定义和用法
type 属性规定 command 的类型。
HTML 4.01 与 HTML5之间的差异
<command> 标签是 HTML5 中的新标签。
语法
		<command type="command|checkbox|radio">
	
属性值
| 值 | 描述 | 
|---|---|
| command | 默认。规定带有 action 的普通命令。 | 
| checkbox | 使用复选框规定可切换的命令。 | 
| radio | 使用单选按钮规定可切换的命令。 |