HTML <command> disabled 属性
标签" 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> disabled 属性
实例
一个被禁用的 <command> 元素:
<menu>
<command type="radio" label="Center" disabled
>Center</command>
</menu>
<command type="radio" label="Center" disabled
>Center</command>
</menu>
浏览器支持
目前,几乎所有的主流浏览器都不支持 disabled 属性。
注意:Internet Explorer 9 支持 disabled 属性(只有 IE9 支持,之前或者之后的版本都不支持)。
定义和用法
disabled 属性是一个布尔属性。
disabled 属性规定应该禁用 command 元素。
HTML 4.01 与 HTML5之间的差异
<command> 标签是 HTML5 中的新标签。
HTML 与 XHTML 之间的差异
在 XHTML 中,禁止属性最小化,disabled 属性必须定义为 <command disabled="disabled">。
语法
<command disabled>
HTML <command> 标签