如何在我的网站顶部获取空白区域?

时间:2016-08-25 19:47:15

标签: django html5 parallax

美好的一天,我不确定如何处理这个问题,但我真的很难摆脱我网站顶部的空白区域。它是一个具有剖面和视差效果的单页。 当我启动它时,我看到顶部的空白区域,当我开始滚动并到达页面的第二部分时,白色空间消失。 我已经设定了:     body,html:{         余量:0;         填充:0;     }

我也附上了网站图片。

我正在使用django,并且不确定将我的部分放在不同的html文件中的事实是否会导致这种情况。 First section which starts the website and parallax Second section which scrolls up and make white space disappear first section html code enter image description here enter image description here enter image description here enter image description here 我现在还不确定该做什么。

非常感谢您的帮助。

2 个答案:

答案 0 :(得分:1)

我弄清楚问题是什么: 只是必须这样做:

   background-size: 100% 100%;
  -webkit-background-size: 100% 100%;
  -moz-background-size: 100% 100%;
  -o-background-size: 100% 100%;

并没有覆盖整个部分

答案 1 :(得分:0)

当我使用Visual Studio编辑某些django模板文件时,我注意到了这个问题。我最终不得不保存没有BOM的文件。

How to make Notepad to save text in UTF-8 without BOM?

UTF-8 without BOM

相关问题