twitter-bootstrap Bootstrap 3 - 具有不同部分的长格式 - 全宽背景

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/22974826/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 20:28:01  来源:igfitidea点击:

Bootstrap 3 - Long form with different sections - full width background

htmltwitter-bootstrapmarkup

提问by user1049961

I started using Bootstrap 3 and have a really long form. I would like to separate each section with different full width background color, and I'm curious what the correct markup would be.

我开始使用 Bootstrap 3 并且有一个很长的表格。我想用不同的全宽背景颜色分隔每个部分,我很好奇正确的标记是什么。

Should it be something like following?

它应该像下面这样吗?

<form>
  <section>
    <div class="container">
       <div class="row">
          <div class="form-group">
              <label for="email" class="col-sm-2 control-label">Email</label>
              <div class="col-xs-12 col-md-4">
                 <input type="email" class="form-control input-sm" name="email" id="email" value="" placeholder="Email">
              </div>
          </div>
       </div>
    </div>
  </section>
</form>

回答by Sposmen

Sorry if it is late, but was looking for something similar. Found Panelsutility inside basic bootstrap and worked for me. Hope could help someone.

对不起,如果晚了,但正在寻找类似的东西。在基本引导程序中找到面板实用程序并对我来说有效。希望可以帮助某人。