Bootstrap Jumbotron



Bootstrap Jumbotron

Bootstrap Jumbotron

Bootstrap jumbotron指定一个大盒子,以引起对某些特殊内容或信息的额外关注。它显示为带有圆角的灰色框。它还可以放大其中的文本的字体大小。
您可以将任何有效的HTML或其他Bootstrap元素/类放置在巨型飞轮中。
class.jumbotron 元素中的用于创建超大加速器。

Jumbotron内部容器

如果您不希望Jumbotron延伸到屏幕边缘,则在Jumbotron中使用Inside容器。
将庞然大物放入内部。
示例:
<!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.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<div class="container">
  <div class="jumbotron">
    <h1>this is Jumbotron inside container!</h1>      
    <p>Jumbotron specifies a big box for getting extra attention to some special content or information.</p>
  </div>
  <p>this is some text.</p>      
  <p>this is another text.</p>      
</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>


Jumbotron外部容器

当您希望Jumbotron扩展到屏幕边缘时,可以使用它。
将庞然大物放在
示例:
<!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.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<div class="jumbotron">
  <h1>this is Jumbotron outside container!</h1>      
  <p>Jumbotron specifies a big box for getting extra attention to some special content or information.</p>
</div>
<div class="container">
  <p>this is some text.</p>      
  <p>this is another text.</p>      
</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>


全宽Jumbotron

要获得没有圆角边界的巨型飞船,您必须在其中添加.jumbotron-fluid类和.container或.container-fluid

示例:

<!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.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h1>Full-width Jumbotron</h1>        
  <p>Jumbotron specifies a big box for getting extra attention to some special content or information.</p>
</div>
<div class="container">
  <p>this is some text.</p>      
  <p>this is another text.</p>      
</div>
</body>
</html>


Bootstrap 页眉

页眉就像节分隔符。
.page-header类用于创建页面标题。
示例:
<!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.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
</head>
<body>
<div class="container">
  <div class="page-header">
    <h1>Example Page Header</h1>      
  </div>
  <p>this is some text.</p>      
  <p>this is another text.</p>      
</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>