带Boot警告的Style Bootstrap 4卡
在Bootstrap中将bg-warning类与card类一起使用,以对Bootstrap卡设置警告操作。
设置警告消息,例如-
Do not cross! High Voltage!
使用以下代码来设置Bootstrap卡的样式-
<div class="card bg-warning"> <div class="card-body">You are trespassing on private property!</div> </div>
您可以尝试运行以下代码以使用bg-warning类对Bootstrap卡进行样式设置-
示例
<!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>
<div class="container">
<h3>Warning</h3>
<div class="card bg-warning">
<div class="card-body">You are trespassing on private property!</div>
</div>
</div>
</body>
</html>热门推荐
1 狗狗技能训练
5 如何训练狗狗笑
6 狗狗训练排便
9 狗狗响片训练
10 如何训练狗狗不捡食
11 狗狗尿训练
12 怎么训练狗狗找东西
13 狗狗训练站立
14 狗狗训练飞盘
15 鞍山狗狗训练
16 怎样训练泰迪狗狗谢谢
17 狗狗外出训练
18 怎么训练金毛狗狗大小便