Bootstrap 4 Button .btn-outline-danger类
要在指示危险的按钮上设置轮廓,您需要使用Bootstrap中的btn-outline-danger类。
在<button>元素中设置轮廓-
<button type="button" class="btn btn-outline-danger"> Danger Ahead </button>
您可以尝试运行以下代码以实现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>Danger Button</h2>
<button type="button" class="btn btn-outline-danger">Danger Ahead</button>
</body>
</html>热门推荐
10 秋分祝福语简短文案
11 叶海燕老师祝福语简短
12 新年祝福语长辈简短红包
13 生日祝福语简短独特格式
14 庆祝论坛周年祝福语简短
15 预祝高尔夫的祝福语简短
16 拜新年的祝福语简短
17 新年的祝福语简短的
18 宝宝生病简短祝福语大全