简体   繁体   English

页面右侧的空白-神秘

[英]White space on right of page - mysterious

在此处输入图片说明

How do I get rid of this white space on the side of my website? 如何摆脱网站一侧的空白? I am out of ideas, and I cannot seem to see what the problem is that is causing every page of my website to have this white space. 我没有主意,似乎无法看到导致我网站的每个页面都有此空白的问题是什么。

Can somebody help and look at this in firebug? 有人可以帮忙看看萤火虫吗? - see if there is something I have missed.. The website is here: www.sugarskull.co -看是否有我错过的东西。网站在这里: www.sugarskull.co

在此处输入图片说明

I am on chrome and I noticed on your <div> top-pusher that you have a height of 45px. 我在Chrome上,我在您的<div> top-pusher注意到您的高度为45px。

Removing this 删除这个

#top-pusher {
  /* height: 45px; */
}

removes the side line that you are talking about, I also did not notice a change in layout (for fullscreen after removal. 删除您正在谈论的边线,我也没有注意到布局的变化(删除后为全屏显示。)

When in mobile, you have padding around your header, which is why the black menu button doesn't touch the window: 在移动设备中时,标题周围会有填充,这就是黑色菜单按钮不触及窗口的原因:

body#home div#header {
  background: transparent;
}

just add padding:0 to the div#header and that should remove the padding margin on the menu/nav bar. 只需将padding:0添加到div#header ,这应删除菜单/导航栏上的填充边距。

Edit: The space bar seems to only be on the homepage, so you should be targeting just that page with this fix: 编辑:空格键似乎只在主页上,因此您应该使用此修复程序仅定位该页面:

#home #top-pusher{
/* fixes right side gape */
height:0px;
}

#home div.sequence-theme{
/* removes white space on bottom */
margin:0;
}

@media /*Your mobile screen size */
    body#home div#header {
      background: transparent;
/*removes spacing allow your nav bar to touch the sides of the window*/
padding:0;
    }

you need to add the following css to #top-pusher margin-right:0;margin-left:0; 您需要将以下CSS添加到#top-pusher margin-right:0;margin-left:0;

you may also need to add !important as you are grabbing styles from .row 当您从.row获取样式时,可能还需要添加! .row

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

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