我试图缩小网站首页库上下的空间,或等于左右空间。附件中的箭头显示了我要缩小的区域。
这是我目前拥有的代码:
@media only screen and (max-width: 800px)
#header, #pageWrapper, #footer{
padding: 30px 20px;
margin-bottom:0px!important;}
最佳答案
我无法发表评论,所以我得到你时会给出答案。
我假设此图像位于wrapper
中,并且wrapper
具有padding: 30px 20px;
所以您用top
在bottom
和30px
之间给了空格,我想您应该给包装器独立的属性,即padding: 0px 20px;
关于css - 如何减少主页画廊上下的空白?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/18239079/