该属性只要出现在标签中,表示禁用该控件
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<input type="text" disabled>
</body>
</html>
加上了disabled 不可选了
默认是enable 不用加上参数 自己本来就有了
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Title</title>
</head>
<body>
<div>
<form>
<div>
<input type="text" disabled>
<input type="button" disabled value="提交">
</div>
</form>
</div>
</body>
</html>