• Hero广告大块屏幕(Jumbotron)

    Hero广告大块屏幕(Jumbotron)

    通过引用.jumbotron方法,实现构建超大的Hreo界面,醒目的在网站上展示关键的营销信息,轻量、灵活。

    这是一个轻量、灵活的组件,可以选择性地扩展整个视口,以展示您网站上的关键营销信息。

    Hero大块屏(Jumbotron)  - 图1

    1. <div class="jumbotron">
    2. <h1 class="display-3">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. <p class="lead">
    7. <a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
    8. </p>
    9. </div>

    想要让广告大屏幕占满当前显示浏览器全屏、不带有圆角,只要添加.jumbotron-fluid CSS修饰符,并在里面添加一个.container.container-fluid 内容空间即可。

    Hero大块屏(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>