[英]Bootstrap CSS Padding Issue
I am trying to make an "Inbox" in bootstrap similar to Gmail's look and feel. 我试图在bootstrap中创建一个类似于Gmail外观的“收件箱”。
I am having some issues with the Panel that the mail items are in however. 我在小组中遇到了一些问题,但是邮件是在。
http://jsfiddle.net/64t872o1/ http://jsfiddle.net/64t872o1/
I am having trouble getting rid of this Margin or padding and I cant figure out what it is. 我无法摆脱这个边距或填充,我无法弄清楚它是什么。
I have set the margins and padding of the panel body to zero but it still remains. 我已将面板主体的边距和填充设置为零,但仍然保留。
.panel-body{
padding: 0px;
padding-bottom: 0px;
margin-bottom: none;
}
Is there an easy way to figure out where this padding is coming from? 有没有一种简单的方法来确定这个填充来自何处?
You are seeing the margin that is set on the .list-group
element. 您正在查看
.list-group
元素上设置的边距。
.tab-content .list-group {
margin-bottom: 0;
}
Here is the initial styling set in the main Bootstrap file: 这是主Bootstrap文件中的初始样式集:
.list-group {
padding-left: 0;
margin-bottom: 20px;
}
The best way: 最好的方法:
.tab-content .list-group {
margin-bottom: 0;
}
在你的CSS中添加:
.tab-content .list-group{margin-bottom:0;}
Use this: 用这个:
.list-group { margin-bottom: 0px;
.list-group {margin-bottom:0px; }
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.