• Jumbotron

    Jumbotron

    Lightweight, flexible component for showcasing hero unit style content.

    A lightweight, flexible component that can optionally extend the entire viewport to showcase key marketing messages on your site.

    Jumbotron - 图1

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

    To make the jumbotron full width, and without rounded corners, add the .jumbotron-fluid modifier class and add a .container or .container-fluid within.

    Jumbotron - 图2

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