twitter-bootstrap - 让 Bootstrap 列跨越到另一行

标签 twitter-bootstrap css

我正在尝试让 Bot Controls div 跨越 Stream Information div,基本上填充屏幕截图中的红线。我已经用谷歌搜索了几个小时,但找不到任何东西。任何帮助将不胜感激。

我正在使用的代码如下。我目前使用的是 Bootstrap 3.3.7。

<!-- Panel content -->
<div class="row">
    <!-- Left section -->
    <section class="col-lg-7">
        <div class="row">
            <!-- Twitch chat box -->
            <div class="col-lg-6">       
                <div class="box box-solid">
                    <div class="box-header with-border">
                        <h3 class="box-title">Twitch Chat</h3>
                    </div>

                    <!-- Box content -->
                    <div class="box-body" style="padding: 0px;">
                        <div id="chat-box" class="chat" />
                        <!-- Load chat -->
                        <script>
                            //$('#chat-box').html('<iframe class="chat" frameborder="0" scrolling="no" src="https://twitch.tv/' + getChannelName() + '/chat">');
                        </script>
                    </div>
                </div>
            </div>

            <!-- Recent event box -->
            <div class="col-lg-6">
                <div class="box box-solid">
                    <div class="box-header with-border">
                        <h3 class="box-title">Recent Events</h3>
                    </div>

                    <form role="form">
                        <!-- Box content -->
                        <div class="box-body event-box">

                        </div>
                    </form>
                </div>
            </div>

            <!-- Bot control box -->
            <div class="col-lg-6" style="">
                <div class="box box-solid">
                    <div class="box-header with-border">
                        <h3 class="box-title">Bot Controls</h3>
                    </div>

                    <form role="form">
                        <!-- Box content -->
                        <div class="box-body">

                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>

    <!-- Right section -->
    <section class="col-lg-5">
        <!-- Stream information box -->
        <div class="box box-solid">
            <div class="box-header with-border">
                <h3 class="box-title">Stream Information</h3>
            </div>

            <form role="form">
                <!-- Box content -->
                <div class="box-body">
                    <!-- Stream Title Input -->
                    <div class="form-group">
                        <label>Title</label>           
                        <input type="text" class="form-control" placeholder="Stream title." data-toggle="tooltip" title="The current stream title.">
                    </div>

                    <!-- Stream Game Input -->
                    <div class="form-group">
                        <label>Game</label>           
                        <input type="text" class="form-control" placeholder="Stream game." data-toggle="tooltip" title="The current stream game.">
                    </div>
                </div>

                <!-- Footer of the box -->
                <div class="box-footer">
                    <button type="button" class="btn btn-primary pull-right">Update</button>
                </div>
            </form>
        </div>
    </section>
</div>

最佳答案

有这个

<div class="row">
<!-- Left section -->
<section class="col-lg-12">
    <div class="row">
        <!-- Twitch chat box -->
        <div class="col-lg-6">       
            <div class="box box-solid">
                <div class="box-header with-border">
                    <h3 class="box-title">Twitch Chat</h3>
                </div>

                <!-- Box content -->
                <div class="box-body" style="padding: 0px;">
                    <div id="chat-box" class="chat" />
                    <!-- Load chat -->
                    <script>
                        //$('#chat-box').html('<iframe class="chat" frameborder="0" scrolling="no" src="https://twitch.tv/' + getChannelName() + '/chat">');
                    </script>
                </div>
            </div>
        </div>

        <!-- Recent event box -->
        <div class="col-lg-6">
            <div class="box box-solid">
                <div class="box-header with-border">
                    <h3 class="box-title">Recent Events</h3>
                </div>

                <form role="form">
                    <!-- Box content -->
                    <div class="box-body event-box">

                    </div>
                </form>
            </div>
        </div>

        <!-- Stream Information -->
        <div class="col-lg-6">
            <div class="box box-solid">
                <div class="box-header with-border">
                    <h3 class="box-title">Stream Information</h3>
                </div>

                <form role="form">
                    <!-- Box content -->
                    <div class="box-body">
                        <!-- Stream Title Input -->
                        <div class="form-group">
                            <label>Title</label>           
                            <input type="text" class="form-control" placeholder="Stream title." data-toggle="tooltip" title="The current stream title.">
                        </div>

                        <!-- Stream Game Input -->
                        <div class="form-group">
                            <label>Game</label>           
                            <input type="text" class="form-control" placeholder="Stream game." data-toggle="tooltip" title="The current stream game.">
                        </div>
                    </div>

                    <!-- Footer of the box -->
                    <div class="box-footer">
                        <button type="button" class="btn btn-primary pull-right">Update</button>
                    </div>
                </form>
            </div>
        </div>
        <div class="clearfix"></div>
        <!-- Bot control box -->
        <div class="col-lg-6" style="">
            <div class="box box-solid">
                <div class="box-header with-border">
                    <h3 class="box-title">Bot Controls</h3>
                </div>

                <form role="form">
                    <!-- Box content -->
                    <div class="box-body">

                    </div>
                </form>
            </div>
        </div>
    </div>
</section>

<!-- Right section -->
<section class="col-lg-5">
    <!-- Stream information box -->

    <!-- Bot control box -->
    <div class="col-lg-6" style="">
        <div class="box box-solid">
            <div class="box-header with-border">
                <h3 class="box-title">Bot Controls</h3>
            </div>

            <form role="form">
                <!-- Box content -->
                <div class="box-body">

                </div>
            </form>
        </div>
    </div>
</section>

关于twitter-bootstrap - 让 Bootstrap 列跨越到另一行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45079042/

相关文章:

html - 水平滚动中的 Bootstrap 缩略图

javascript - 使用 bootstrap collapse 切换 glyphicon

html - 在 Bootstrap 3.3.6 中的内联表单中创建垂直表单元素

css - 自定义简单表单 Collection_Select

css - 如何将桌面媒体查询样式应用于 IE?

html - css如何只显示背景的一部分?

javascript - 无法显示 bootstrap UI 模态

jquery - Bootstrap 4 轮播在选项卡内不起作用

html - 防止内容与按钮重叠

php - Float :left - Float:right Issue when div is too high. (有解决方法,但不知道如何实现到MYSQL中)