在 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>