引导警报类
通过创建包装器<div>并添加.alert类和四个上下文类之一来添加基本警报,例如.alert-success,.alert-info,.alert-warning,.alert-danger。
您可以尝试运行以下代码来创建警报类-
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class = "alert alert-success">
This is Success!
</div>
<div class = "alert alert-info">
This is Info!
</div>
<div class = "alert alert-warning">
This is Warning!
</div>
<div class = "alert alert-danger">
This is Error!
</div>
</body>
</html>热门推荐
10 生日寿宴祝福语简短精辟
11 生日祝福语简短而有深意
12 送给姐姐简短的祝福语
13 新娘对伴娘祝福语简短
14 叔叔生日祝福语简短搞笑
15 新年祝福语小知识简短
16 给男生的简短祝福语
17 祝福语简短创意闺蜜
18 生日祝福语简短搞笑女儿