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