禁用控件,关闭控件的任何功能。
<form> <input type="text" disabled /> <!-- 定义了 disabled 属性,控件的功能彻底丧失 --> </form>
显示效果