HTML <button> 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 <button> disabled 属性
实例
禁用一个按钮:
<button type="button" disabled>点我!</button>
浏览器支持
所有主流浏览器都支持 disabled 属性
定义和用法
disabled 属性是一个 boolean(布尔) 属性。
如果使用该属性,则会禁用按钮。
HTML 4.01 与 HTML5之间的差异
NONE.
HTML 与 XHTML之间的差异
在 XHTML 中, 属性不允许简写, disabled 属性必须定义为 <button disabled="disabled">。
语法
<button disabled>
HTML <button> 标签