Mobile 如何在Twitter引导中删除Google Adsense 320x50移动广告的侧边填充?
当使用Twitter Bootstrap并试图实现一个320×50的移动横幅广告时,我遇到了一个问题,在移动设备上,横幅的左侧会有填充物(也可能是右侧)。Bootstrap会自动在你的身体周围创建一个20像素的填充物。要删除此项,就像对移动导航栏所做的那样,在引导响应文件中实现一个新类:Mobile 如何在Twitter引导中删除Google Adsense 320x50移动广告的侧边填充?,mobile,twitter-bootstrap,adsense,Mobile,Twitter Bootstrap,Adsense,当使用Twitter Bootstrap并试图实现一个320×50的移动横幅广告时,我遇到了一个问题,在移动设备上,横幅的左侧会有填充物(也可能是右侧)。Bootstrap会自动在你的身体周围创建一个20像素的填充物。要删除此项,就像对移动导航栏所做的那样,在引导响应文件中实现一个新类: @media (max-width: 767px) { body { // The code that creates a padding around the body in mobile
@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;
}