• 创建一个带有 class .jumbotron. 的容器 <div>。
  • 除了更大的 <h1>,字体粗细 font-weight 被减为 200px。

下面的实例演示了这点:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 实例 - 超大屏幕(Jumbotron)</title>
   <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <script src="/scripts/jquery.min.js"></script>
   <script src="/bootstrap/js/bootstrap.min.js"></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>

结果如下所示:

Bootstrap <基础二十二>超大屏幕(Jumbotron)

为了获得占用全部宽度且不带圆角的超大屏幕,请在所有的 .container class 外使用 .jumbotron class,如下面的实例所示:

<!DOCTYPE html>
<html>
<head>
   <title>Bootstrap 实例 - 超大屏幕(Jumbotron)</title>
   <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
   <script src="/scripts/jquery.min.js"></script>
   <script src="/bootstrap/js/bootstrap.min.js"></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>

结果如下所示:

Bootstrap <基础二十二>超大屏幕(Jumbotron)
 

相关文章:

  • 2021-12-18
  • 2021-12-21
  • 2022-02-18
  • 2021-11-16
  • 2021-07-28
  • 2021-10-03
  • 2021-11-07
  • 2021-09-12
猜你喜欢
  • 2021-11-09
  • 2021-12-29
  • 2021-12-29
  • 2021-06-12
  • 2022-12-23
  • 2021-06-15
  • 2021-08-28
相关资源
相似解决方案