logo图片
Bootstrap教程

Bootstrap Wells

Bootstrap Wells

在Bootstrap中,井用于在元素周围添加带有灰色背景颜色和填充的圆形边框。就像显示内容的容器一样。
class.well 与元素一起使用可以很好地添加内容。
示例:
 <!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Case</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body> 
<div class="container">
  <h2>Well Example</h2>
  <div class="well">Hi! I am a Basic Well.</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>   
</body>
</html>

Bootstrap Wells的大小

默认情况下,孔的大小是中等的,但是您可以根据需要更改孔的大小。 .well-sm 类用于小孔, .well-lg 类用于大孔。
示例:
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Case</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  
</head>
<body> 
<div class="container">
  <h2>Well Size</h2>
  <div class="well well-sm">this is Small Well</div>
  <div class="well">this is Medium Well (By Default)</div>
  <div class="well well-lg">this is Large Well</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
</body>
</html>
昵称: 邮箱:
Copyright © 2020 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4