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.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/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