用红色轮廓的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>