简体   繁体   English

跨模态-Twitter Bootstrap 2

[英]span in modal - Twitter Bootstrap 2

I want to use span structure in modal view but when I use . 我想在模式视图中使用跨度结构,但是当我使用时。 row , . row row-fluid or span s in modal it overflow modal div. 模态row-fluidspan s溢出模态div。

<div id="login_register_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <!-- Header -->
    <div class="modal-header"> </div>

    <!-- body -->
    <div style="color:black;" class="modal-body">

    <!-- I want to use here 2 times span6 in .row div like this but spans overflow -->

      <div class="row">

        <div class="span-6"> left content</div>
        <div class="span-6"> right content</div>

      </div>
    </div>

    <!--footer -->
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
        <button class="btn btn-primary">Save changes</button>
    </div>
</div>

if this is not impossible in bootstrap how can i divide modal two equal part? 如果在bootstrap中这不是不可能,我如何将模态分为两个相等的部分?

how can i divide modal two equal part ? 我如何将模态分为两个相等的部分?

Tried to implement 2 parts inside the modal and hide one of them through jQuery. 试图在模态内部实现2个部分,并通过jQuery隐藏其中的1个部分。 TB modal is nothing special just some piece of html. TB模态只是一些html没什么特别的。

You can customize it whatever way you want. 您可以根据需要自定义它。

but when I use .row, .row-fluid or spans in modal it overflow modal div. 但是当我在模式中使用.row,.row-fluid或spans时,会溢出modal div。

Do you use fixed width or Height. 您使用固定的宽度还是高度。 If you have row or .row-fluid then you need to put your content (html code) inside that div. 如果您有row或.row-fluid,则需要将内容(html代码)放入该div中。 it will not take more space. 它不会占用更多空间。

inside TB if you have define .row and use spanx in the div then it will be shown in left:30 something. 在TB内部,如果您已定义.row并在div中使用spanx,则它将在left:30中显示。 Maybe that is causing the issue. 也许这就是问题所在。 You can remove the left,right manually by writing custom stylesheet. 您可以通过编写自定义样式表来手动删除左右。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM