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>