在 GitHub 上查看

巨型展示板

用于展示英雄单元样式内容的轻量级、灵活组件。

一个轻量级、灵活的组件,可以根据需要扩展整个视口,在您的网站上展示关键的营销信息。

你好,世界!

这是一个简单的英雄单元,一个简单的巨型展示板样式组件,用于特别关注特色内容或信息。


它使用排版和间距实用工具类,在较大的容器内为内容留出空间。

了解更多
<div class="jumbotron">
  <h1 class="display-4">Hello, world!</h1>
  <p class="lead">This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.</p>
  <hr class="my-4">
  <p>It uses utility classes for typography and spacing to space content out within the larger container.</p>
  <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
</div>

要使巨型展示板全宽且没有圆角,请添加 .jumbotron-fluid 修饰符类,并在其中添加一个 .container.container-fluid

流体巨型展示板

这是一个经过修改的巨型展示板,占据其父元素的整个水平空间。

<div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h1 class="display-4">Fluid jumbotron</h1>
    <p class="lead">This is a modified jumbotron that occupies the entire horizontal space of its parent.</p>
  </div>
</div>