twitter-bootstrap Twitter Bootstrap 复杂表单布局
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14819874/
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
Twitter Bootstrap Complex Form Layout
提问by aragorn
I need to build a form that has seven fieldsets - one of them has twenty four input fields (textboxes, checkboxes, etc) and one has a table in which rows are added dynamically. I want to use Twitter Bootstrap to develop the form. Is it good practice to use a grid? Can anyone please point me to a tutorial that has an example of a complex form layout? The examples I see have very few fields in them and the alignment of fields is messed up in my form if I try to extend these examples to contain more fields.
我需要构建一个具有七个字段集的表单 - 其中一个有二十四个输入字段(文本框、复选框等),一个有一个表格,其中的行是动态添加的。我想使用 Twitter Bootstrap 来开发表单。使用网格是一种好习惯吗?任何人都可以指点我一个包含复杂表单布局示例的教程吗?我看到的示例中的字段很少,如果我尝试扩展这些示例以包含更多字段,则字段的对齐方式会在我的表单中弄乱。
回答by Zim
You should indeed be able to use Bootstrap's scaffolding grid. Take a look at Bootply. It will enable to you to try different Bootstrap elements and form layouts.
您确实应该能够使用 Bootstrap 的脚手架网格。看看Bootply。它将使您能够尝试不同的 Bootstrap 元素和表单布局。
There is complex form example here: http://bootply.com/60430
这里有复杂的表单示例:http: //bootply.com/60430

