Bootstrap:彼此相邻而不是顶部

时间:2014-05-29 21:41:38

标签: twitter-bootstrap

确定, 我以为

<div class="container">
    <div class="row">
        <div class="col-lg-2">
            <table id="example" class="display">
                <thead>
                <tr>
                    <th>Property</th>
                    <th>Value</th>
                </tr>
                </thead>
            </table>
        </div>

        <div class="col-lg-10">
            <div id="container" style="height: 535px; margin: 0 auto">
            </div>
        </div>
    </div>
</div>

应该会产生图表旁边的表格。 (两个对象都在脚本中描述)。但是在我的私人桌面上,两个对象都显示在彼此之上......

我在这里看不到任何想法?

1 个答案:

答案 0 :(得分:-1)

请记住,引导程序中不存在类.col-lg-2。您必须使用.col-xs-2。所以只需将<div class="col-lg-2">替换为<div class="col-xs-2">,你应该做得很好。 祝你好运!