简体   繁体   English

在HTML5中添加引导网格系统

[英]Adding bootstrap grid system to HTML5

<main>    
    <section id="slide-1" class="homeSlide">
      <div class="bcg">   
        <div class="hsContainer">
        <div class="hsContent" data-center="bottom: 200px; opacity: 1"
                data-top="bottom: 1200px; opacity: 0"
                data-anchor-target="#slide-1 h2">
          <h2>Item1</h2>

        </div>
        </div>
      </div>
    </section>

    <section id="slide-2" class="homeSlide">
        <div class="bcg">
            <div class="hsContainer">
                <div class="hsContent"
                    data-center="opacity: 1"
                    data-center-top="opacity: 0"
                    data--100-bottom="opacity: 0;"
                    data-anchor-target="#slide-2"
                >
                <h2>Item2</h2>
              </div>
              </div>
          </div>
    </section>

    <section id="slide-2" class="homeSlide">
        <div class="bcg">
            <div class="hsContainer">
                <div class="hsContent"
                    data-center="opacity: 1"
                    data-center-top="opacity: 0"
                    data--100-bottom="opacity: 0;"
                    data-anchor-target="#slide-2"
                >
                <h2>Item3</h2>
              </div>
              </div>
          </div>
    </section>
</main>

I have three sections under main tag. 我在主标签下有三个部分。 Its a parallax effect and each section takes the entire screen width.How will apply bootstrap's grid system here and make them responsive. 它具有视差效果,每个部分占据整个屏幕宽度。如何在此处应用bootstrap's网格系统并使它们响应。

like this by adding container-full on main and row on each section 像这样通过在每个部分的mainrow上添加container-full

<main class="container-full">    
<section id="slide-1" class="homeSlide row">

bootply demo here 在这里启动演示

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM