使用bootstrap实现禁用按钮的方法:1.新建html文件,引入bootstrap;2.在文件中按钮;3.设置disabled属性禁用按钮;具体步骤如下:首先,新建一个html文件,并在文件中引入bootstrap;<!DOCTY
使用bootstrap实现禁用按钮的方法:1.新建html文件,引入bootstrap;2.在文件中按钮;3.设置disabled属性禁用按钮;
具体步骤如下:
首先,新建一个html文件,并在文件中引入bootstrap;
<!DOCTYPE html><html>
<head>
<title>Document</title>
<link rel="stylesheet" href="bootstrap.min.CSS">
<style></style>
</head>
<body>
</body>
</html>
bootstrap引入后,在文件中添加一个按钮;
<!DOCTYPE html><html>
<head>
<title>Document</title>
<link rel="stylesheet" href="bootstrap.min.css">
<style></style>
</head>
<body>
<button type="button" >按钮</button>
</body>
</html>
最后,按钮添加好后,为按钮添加一个class类,设置disabled属性即可禁用按钮;
<!DOCTYPE html><html>
<head>
<title>Document</title>
<link rel="stylesheet" href="bootstrap.min.css">
<style></style>
</head>
<body>
<button type="button" class="disabled">按钮</button>
</body>
</html>
--结束END--
本文标题: bootstrap如何禁用按钮
本文链接: https://www.lsjlt.com/news/111042.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-06
2024-05-06
2024-05-06
2024-05-06
2024-05-06
2024-05-06
2024-05-06
2024-05-06
2024-05-06
2024-05-06
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0