javascript - 我可以在 col-md-8 中使用两个 col-md-6 吗?

标签 javascript twitter-bootstrap

我可以在 col-md-8 中使用两个 col-md-6 还是必须使用两个 col-md-4?

<div class="row">
 <div class="col-md-8">
    <div class="row">   
        <div class="col-md-6">
        </div> 
        <div class="col-md-6">
        </div> 
    </div>

 </div>

 <div class="col-md-4">
 </div> 
</div>

如果我插入 <div class="row">,我可以将 col-md-8 视为 col-md-12 吗?在 col-md-8 里面?

我试过了,它为我提供了所需的结果,但是是否合适

最佳答案

根据 Bootstrap documentation :

To nest your content with the default grid, add a new .row and set of .col-sm-* columns within an existing .col-sm-* column. Nested rows should include a set of columns that add up to 12 or fewer (it is not required that you use all 12 available columns).

所以,是的,你可以。

关于javascript - 我可以在 col-md-8 中使用两个 col-md-6 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28546458/

相关文章:

asp.net-mvc - 是否有使用 ASP.NET MVC 5 Html.EditorFor() 和 Bootstrap 3.0 的解决方案?

html - bootstrap scrollspy 不起作用

javascript - 应用 CSS onclick

javascript - ejs模板数据未插入到mongodb中

javascript - 如果我不使用 jquery CDN slim 包的 bootstrap v4 会发生什么

html - Bootstrap 中图标后内联显示的文本

javascript - 将 st、th、rd 添加到 jQuery 日期

javascript - Jquery Popup 不居中

javascript - 为什么 async/await 函数运行两次?

javascript - Bootstrap 表格行格式化程序