Good day, I'm not really sure how to deal with this issue, but I'm really struggling to get rid of the white space at the top of my website. it's a single page with sections and parallax effect. When I launch it, I see the white space at the top, and when I start scrolling and reach the second section of the page then the white space disappears. I have set the: body, html:{ margin:0; padding:0; }
您好,我不太确定该如何处理这个问题,但是我真的很难在我的网站的顶部清除空白。这是一页,有部分和视差效果。当我启动它时,我看到顶部的空白,当我开始滚动并到达页面的第二部分时,空白就消失了。我设置了:body, html:{margin:0;填充:0;}
I have attached the website pictures as well.
我也附上了网站的图片。
And I'm using django, and not sure if the fact of putting my sections in different html files is causing this. I'm not really sure of what to do now.
我使用的是django,不确定将我的部分放到不同的html文件中是否会导致这种情况。我真的不知道现在该做什么。
Will appreciate any help.
会感谢任何帮助。
2 个解决方案
#1
1
I figured out what the issue was: just had to do this:
我弄明白了问题是什么:只要这么做:
background-size: 100% 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
and not have it cover the whole section
而不是让它覆盖整个部分
#2
0
I've noticed this issue when I used Visual Studio to edit some django template files. I ended up having to save the file without BOM.
我在使用Visual Studio编辑一些django模板文件时注意到了这个问题。最后我不得不在没有BOM的情况下保存文件。
How to make Notepad to save text in UTF-8 without BOM?
如何在没有BOM的情况下制作记事本以UTF-8保存文本?
utf - 8没有物料清单
#1
1
I figured out what the issue was: just had to do this:
我弄明白了问题是什么:只要这么做:
background-size: 100% 100%;
-webkit-background-size: 100% 100%;
-moz-background-size: 100% 100%;
-o-background-size: 100% 100%;
and not have it cover the whole section
而不是让它覆盖整个部分
#2
0
I've noticed this issue when I used Visual Studio to edit some django template files. I ended up having to save the file without BOM.
我在使用Visual Studio编辑一些django模板文件时注意到了这个问题。最后我不得不在没有BOM的情况下保存文件。
How to make Notepad to save text in UTF-8 without BOM?
如何在没有BOM的情况下制作记事本以UTF-8保存文本?
utf - 8没有物料清单