引导3嵌套问题 [英] Bootstrap 3 Nesting Issue

查看:97
本文介绍了引导3嵌套问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在这个工作约2个小时,嵌套在Bootstrap 3 refueses工作。



我的问题是当我做嵌套网格时,总是有边距/ paddings。请查看:



http:// jliu。 me / grill / admin.html



(这是底部的两个东西(两个col-lg-6)都不与顶部对齐)。



有人可以帮我吗?

解决方案

  .col-lg-5 {padding-right:0; } 
.col-lg-5.col-offset-1 {padding-left:0; }

我建议为每个类添加一个唯一的类,

I have been working on this for about 2 hours, and nesting in Bootstrap 3 refueses to work. I have even copy pasta'd Bootstrap 3's doc examples and they still look weird.

My issue is that there are always margins/paddings when I do nested grids. Check this out:

http://jliu.me/grill/admin.html

(It's how the two things on the bottom (both col-lg-6) are not aligned with top).

Could somebody help me on this?

解决方案

.col-lg-5 { padding-right: 0; }
.col-lg-5.col-offset-1 { padding-left: 0; }

I will suggest to add an unique class to each and remove the padding-left form the offset one and the padding-right for the other one

Hope this helps.

这篇关于引导3嵌套问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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