我试图缩小网站首页库上下的空间,或等于左右空间。附件中的箭头显示了我要缩小的区域。

这是我目前拥有的代码:

@media only screen and (max-width: 800px)
#header, #pageWrapper, #footer{
padding: 30px 20px;
margin-bottom:0px!important;}

最佳答案

我无法发表评论,所以我得到你时会给出答案。

我假设此图像位于wrapper中,并且wrapper具有padding: 30px 20px;

所以您用topbottom30px之间给了空格,我想您应该给包装器独立的属性,即padding: 0px 20px;

关于css - 如何减少主页画廊上下的空白?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18239079/

10-11 13:03