Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Bootstrap's oversized screen


May 04, 2021 Bootstrap


Table of contents


Bootstrap Oversized Screen (Jumbotron).

This chapter explains another feature supported by Bootstrap, Jumbotron. A s the name implies, this component increases the size of the title and adds more margins (margins) to the contents of the landing page. Here's how to use Jumbotron:

  • Create a one with class .jumbotron . Containers for the .
  • In addition to the larger one, font weight font-weight is reduced to 200px.

The following example demonstrates this:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 实例 - 超大屏幕(Jumbotron)</title>
   <link href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="external nofollow" target="_blank"  rel="external nofollow" target="_blank"  rel="stylesheet">
   <script src="//cdn.bootcss.com/jquery/2.1.1/jquery.min.js" rel="external nofollow"  rel="external nofollow" ></script>
   <script src="//cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js" rel="external nofollow"  rel="external nofollow" ></script>
</head>
<body>

<div class="container">
   <div class="jumbotron">
      <h1>欢迎登陆页面!</h1>
      <p>这是一个超大屏幕(Jumbotron)的实例。</p>
      <p><a class="btn btn-primary btn-lg" role="button">
         学习更多</a>
      </p>
   </div>
</div>

</body>
</html>

The result is as follows:

Bootstrap's oversized screen

To get an oversized screen that takes up all widths without fillets, use .jumbotron class outside of all .container classes, as shown in the following example:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 实例 - 超大屏幕(Jumbotron)</title>
   <link href="//cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="external nofollow" target="_blank"  rel="external nofollow" target="_blank"  rel="stylesheet">
   <script src="//cdn.bootcss.com/jquery/2.1.1/jquery.min.js" rel="external nofollow"  rel="external nofollow" ></script>
   <script src="//cdn.bootcss.com/bootstrap/3.3.6/js/bootstrap.min.js" rel="external nofollow"  rel="external nofollow" ></script>
</head>
<body>

<div class="jumbotron">
   <div class="container">
      <h1>欢迎登陆页面!</h1>
      <p>这是一个超大屏幕(Jumbotron)的实例。</p>
      <p><a class="btn btn-primary btn-lg" role="button">
         学习更多</a>
      </p>
   </div>
</div>

</body>
</html>

The result is as follows:

Bootstrap's oversized screen

Read about it

Bootstrap Oversized Screen (Jumbotron)