用红色轮廓的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>热门推荐
10 生日祝福语朋友简短的话
11 宝贝的人生祝福语简短
12 新年有哪些祝福语简短
13 简短又洋气祝福语大全
14 简短祝福语除夕快乐英文
15 生日贺卡祝福语毕业简短
16 战友聚会祝福语幽默简短
17 最新中秋祝福语简短英语
18 夏日升学宴祝福语简短