Bootstrap Wells

Wells

.well 类在具有灰色背景色和一些填充的元素周围添加圆形边框:

简单的 Well
实例
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Bootstrap 实例</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
  8. </head>
  9. <body>
  10. <div class="container">
  11. <h2>Well</h2>
  12. <div class="well">简单的 Well</div>
  13. </div>
  14. </body>
  15. </html>

Well 的大小

通过添加 .well-sm(适用于小尺寸)或 .well-lg(适用于大尺寸)来改变 well 的大小:

小尺寸 Well
中等尺寸 Well
大尺寸 Well
实例
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Bootstrap 实例</title>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <link rel="stylesheet" href="https://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
  8. </head>
  9. <body>
  10. <div class="container">
  11. <h2>Well 大小</h2>
  12. <div class="well well-sm">小尺寸 Well</div>
  13. <div class="well">中等尺寸 Well</div>
  14. <div class="well well-lg">大尺寸 Well</div>
  15. </div>
  16. </body>
  17. </html>

默认情况下,well 的大小为中等。