使用Bootstrap禁用按钮
在Bootstrap中使用.disabled 类来禁用按钮。
您可以尝试运行以下代码来实现.disabled类-
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
<body>
<div class = "container">
<h2>Rank of Cricketers</h2>
<p>The following are the rank of cricketers:</p>
<button type = "button" class = "btn btn-primary">Enabled</button>
<button type = "button" class = "btn btn-primary disabled">Disabled</button>
</div>
</body>
</html>热门推荐
10 送给情侣贺卡祝福语简短
11 儿子31岁祝福语简短
12 对司机的祝福语简短
13 关云生字祝福语简短
14 要过年了祝福语简短
15 公司个人新年祝福语简短
16 给医生简短新年祝福语
17 生了女孩祝福语简短的
18 写给兄弟的祝福语简短