【发布时间】:2012-07-25 01:50:20
【问题描述】:
可能重复:
What's the proper way to add selected and related attributes to inputs?
Correct value for disabled attribute
我有以下几点:
<button id="refreshLink" class="blue" type="button" title="Refresh Topic Grid"
data-entity="Topic"
data-href="/Admin/Contents/Reference">
<span class="center-icon sprite-arrow-circle"></span></button>
我看到了很多不同的方法来禁用它。
disabled=true
disabled=disabled
disabled
执行此操作的正确方法是什么?我越来越糊涂了。
【问题讨论】:
-
哪个版本的HTML?我认为 html5 可以有不同的语法。您喜欢的网络编辑器是否会建议您正确的语法(我使用 Visual Studio,这是它的功能之一)。
标签: html