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
提问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>

