2012-08-07 62 views

回答

0

Bootstrap会自动在身体周围创建一个20px的填充。为了消除这一点,就像移动导航栏所做的那样,在引导响应文件中实现一个新类:

@media (max-width: 767px) { 
body {  // The code that creates a padding around the body in mobile 
    padding-right: 20px; 
    padding-left: 20px; 
} 
.google-adsense, // Create a new class for your ad with -20 margins (The navbar 
        // is already implemented like this so just add new class name) 
.navbar-fixed-top, 
.navbar-fixed-bottom { 
    margin-right: -20px; 
    margin-left: -20px; 
}