7.8.3 well

7.8.3 well

.well样式用在元素上,可实现简单的inset(嵌入)效果。Bootstrap提供了如下3种.well样式。

样式 描述
.well 普通的well样式。
.well-lg 大的well样式。
.well-sm 小的well样式。

下面的代码示范了.well样式的用法。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title> well样式 </title>
<link rel="stylesheet" href="../bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="../bootstrap/css/bootstrap-theme.min.css">
</head>

<body>
<div class="container">
<div class="well well-lg">
嵌入效果(.well-lg)
</div>
<div class="well">
嵌入效果(.well)
</div>
<div class="well well-sm">
嵌入效果(.well-sm)
</div>
</div>
<script type="text/javascript" src="../jquery-3.1.1.js"></script>
<script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>
</body>

</html>