简体   繁体   English

屏幕两侧的Bootstrap2 20px填充在767px及以下

[英]Bootstrap2 20px padding on both-sides of screen at 767px and below

good evening, I am using Joomla built in Bootstrap2. 晚上好,我正在使用内置于Bootstrap2中的Joomla。 I am making website in full width view, the problem is below 768px 20px padding add on both sides of the screen. 我正在以全角视图制作网站,问题是在屏幕两侧768px以下768px的空白处添加。 I have added following but its not working: 我添加了以下内容,但无法正常工作:

@media (max-width:767px) {

    .container-fluid {
     padding: 0;
    }
}

Thank you for your help. 谢谢您的帮助。

Regards, 问候,

You need to update the rule defined in the responsive-bootstrap.min.css. 您需要更新sensitive-bootstrap.min.css中定义的规则。 Code in that file is : 该文件中的代码是:

@media (max-width:767px) {    
    body{
     padding-left: 20px;
     padding-right: 20px;
    }
}

So to make it zero you have to override that rule so replace your code with this: 因此,要使其为零,您必须覆盖该规则,因此将代码替换为:

@media (max-width:767px) {    
    body{
     padding: 0px;
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM