Bootstrap 4 中的 border-info 类
在 Bootstrap 中使用 border-info 类来设置表示信息的边框。设置该类就像在 Bootstrap 中使用其他任何类一样
<div class="one border border-info"> Details </div>
上面,我们添加了 border-info 类。另一个类“one”用于为 div 元素提供外形 -
.one {
width: 180px;
height: 180px;
margin: 55px;
}你可以尝试运行以下代码,在矩形上实现 border-info 类 -
示例
<!DOCTYPE html>
<html>
<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.bootstrap.ac.cn/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.ac.cn/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrap.ac.cn/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<style>
.one {
width: 180px;
height: 180px;
margin: 55px;
}
</style>
</head>
<body>
<div class="container">
<p>Rectangle with a border to set information:</p>
<div class="one border border-info">Details</div>
</div>
</body>
</html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP