简体   繁体   English

边距空白

[英]Margin white-space

I was modifying a page and out of no where white-space started showing on it. 我正在修改页面,并且在空白处开始显示空白。 It is making the page wider than 100% width in my mobile media query (anything from 640px down. It looks like this: 它使页面在我的移动媒体查询中的宽度大于100%宽度(从640px向下的任何宽度。看起来像这样:

在此处输入图片说明

The only thing I changed in my main desktop view is: 我在主桌面视图中所做的唯一更改是:

 #see-all-services-text {
    opacity: 0;
    font-size: 1.3em;
    position: relative;
    left: -30%;
}

I changed left: -30%; left: -30%; from left: -20%; left: -20%;

and then I widened the blue-text area within my main desktop view as well. 然后我也扩大了主桌面视图中的blue-text区域。

The thing is within the developer inspect tool, I do not see anything that is showing exceeding the 100% width. 东西在开发人员检查工具中,看不到任何超出100%宽度的东西。 Sorry for this being a pretty broad question. 抱歉,这是一个相当广泛的问题。 I just don't see the area in which is causing this to be able to fix it, so any insight of something I over-looked would be amazing. 我只是看不到导致此问题的区域可以修复它,所以任何我忽略的问题的见解都将是惊人的。

Because you have child elements animating in and out of the .blue wrapper, it pushes element width further than the body. 由于您的子元素会在.blue包装器中进行动画.blue ,因此它会将元素的宽度推到比正文更大的位置。 You can fix this by adding 您可以通过添加来解决此问题

.blue {
   overflow: hidden;
}

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

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