是否可以使用“行"和“跨度" Twitter Bootstrap中的内部模式? [英] Is it possible to use "rows" and "spans" inside modals in Twitter Bootstrap?

查看:79
本文介绍了是否可以使用“行"和“跨度" Twitter Bootstrap中的内部模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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?

推荐答案

是的,只需使用行流体"类将其放在模态主体中,它将调整为可用空间(除非您更改了这些样式):

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中的内部模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆