用红色轮廓的Bootstrap 4按钮指示危险
使用Bootsrap4中的btn-outline-danger类使用红色轮廓按钮指示危险。
以下是设置带有红色轮廓线指示危险的按钮的示例-
<button type="button" class="btn btn-outline-danger"> Danger </button>
该类是使用Bootstrap中的btn和btn-outline-danger类添加的-
class="btn btn-outline-danger”
让我们看一个示例来实现btn-outline-danger类-
示例
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bootstrap Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="https://cdn.staticfile.org/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
</head>
<body>
<h2>Animals</h2>
<p>Animals are in danger. To know what, you need to click below:</p>
<button type="button" class="btn btn-outline-danger">Danger</button>
</body>
</html>热门推荐
1 如何训练狗狗握手
10 新员工寄语祝福语简短
11 新婚敬酒祝福语大全简短
12 怎么训练狗狗
13 训练狗狗上厕所
14 春蚕老师祝福语简短励志
15 高考好运如愿祝福语简短
16 战哥过年祝福语简短
17 中考感谢朋友祝福语简短
18 长沙旅游祝福语大全简短