问题描述
我正在尝试使用 Twitter Bootstrap 中的模式来实现联系表单.
I'm trying to use the modals within Twitter Bootstrap to implement a contact form.
理想情况下,我希望前两个字段集彼此对齐,第三个字段集(包含文本区域和提交按钮)占据模态框的整个宽度.
Ideally I would like the first two fieldsets to align next to each other and the third fieldset (containing a textarea and a submit button) to occupy the full width of the modal.
我尝试使用行和跨度来使它们发挥得很好,但不确定如何去做.好像没有一共可以从 span12 开始.
I have tried to use rows and spans to make them play nicely but am not sure on the way to go about this. It seems like there isn't a total of span12 to start with.
还有其他人取得过类似的成就吗?
Has anyone else achieved anything similar?
推荐答案
是的,只需使用row-fluid"类将其放入模态体中,它将调整到可用空间(除非您更改了这些样式):
Yes, just put it inside the modal body using "row-fluid" class, which will adjust to available space (unless you changed these styles):
<div class="row-fluid">
<div class="span6">something</div>
<div class="span6">something else</div>
</div>
这篇关于是否可以使用“行"?和“跨度"Twitter Bootstrap 中的模态框内?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!