Bootstrap Wells
Wells
.well
类在具有灰色背景色和一些填充的元素周围添加圆形边框:
简单的 Well
实例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 实例</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h2>Well</h2>
<div class="well">简单的 Well</div>
</div>
</body>
</html>
Well 的大小
通过添加 .well-sm
(适用于小尺寸)或 .well-lg
(适用于大尺寸)来改变 well 的大小:
小尺寸 Well
中等尺寸 Well
大尺寸 Well
实例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap 实例</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<h2>Well 大小</h2>
<div class="well well-sm">小尺寸 Well</div>
<div class="well">中等尺寸 Well</div>
<div class="well well-lg">大尺寸 Well</div>
</div>
</body>
</html>
默认情况下,well 的大小为中等。