创建一个浅蓝色警报框,以指示有关Bootstrap的一些信息
使用.alert-info类创建一个浅蓝色警报框,指示一些信息。
您可以尝试运行以下代码以在Bootstrap中实现.alert-info类-
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link rel = "stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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.1/js/bootstrap.min.js"></script>
</head>
<body>
<div class = "container">
<div class = "alert alert-info">
<p>Information!</p>
<p>Add information here...</p>
</div>
</div>
</body>
</html>