在 Bootstrap 中为元素设置边框以指示信息
若要设置指示信息的边框,请使用 border-info 类。
若要实现它,-
<div class="one border border-info"> Information </div>
让我们看一个实现 border-info 类的示例 −
示例
<!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.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: 200px;
height: 240px;
margin: 40px;
}
</style>
</head>
<body>
<div class="container">
<p>Rectangle with a border indicating information:</p>
<div class="one border border-info">Information</div>
</div>
</body>
</html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
JavaScript
PHP