本文介绍了删除填充在jumbotron bootstrap 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从jumbotron bootstrap 3中删除默认填充?我试图设置 padding-top:5px;
在jumbotron div。但是有一些默认填充,如何删除它?
How to remove the default padding from jumbotron bootstrap 3? I am trying to set padding-top:5px;
in jumbotron div. But there is some default padding, how to remove it?
推荐答案
问题是CSS选择器的jumbotron的特异性会更大
The problem is that the CSS selector's specificity for jumbotron would be greater than the one you are applying.
您可以阅读有关CSS的更多信息
You can read more about the CSS Selector Specificity here
您可以向您的jumbotron添加ID,并且样式为
You can add an ID to your jumbotron, and style that,
#jumbo {
padding: 5px;
}
这篇关于删除填充在jumbotron bootstrap 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!