无法删除文档底部的空格 [英] Can't remove Whitespace at the bottom of my document
问题描述
我每次渲染页面时都会产生这个空白块。我不知道它出现在那里。下面是当我检查在chrome,它发生在其他浏览器的图像。这是一个问题,因为它的下面我的页脚所以我只是有空格,没有css似乎解决它,只是直接删除的空间,这是罚款,但空间不存在于我的代码。
I seem to have this block of space generating each time I render the page. I have no idea how it appears there. Below is the image when I inspect in chrome, it happens in other browsers. It's an issue as its below my footer so I just have whitespace, no css seems to solve it, only directly deleting the space which is fine, but the space doesn't exist in my code.
<body>
<div id="wrapper">
<div id="header">
<img style="display:block; " src="assets/img/trinity.png" alt="trinityimage" />
<ul style="width:100%;
height:100px;
background:url(assets/img/backg.png) repeat-x;
list-style:none;
margin:0;
padding:0;
text-align:center;" id="menu">
<li class="selected"><a href="#" class="home"><span></span></a></li>
<li><a href="#" class="aboutus"><span></span></a></li>
<li><a href="#" class="team"><span></span></a></li>
<li><a href="#" class="club"><span></span></a></li>
<li><a href="#" class="spare"><span></span></a></li>
</ul>
</div>
<div id="content">
<div id="space"></div>
<img style="padding:7px;" src="assets/img/newsite.png" align="left" alt="newsite"/>
<p>Welcome to the Club homepage</p>!
<div id="rightcolumn">
<h3>Recent News!</h3>
<ul style="font-size:9px; line-height:100%;">
<li><p>Lorem ipsum dolor</p></li>
<li><p>Lorem ipsum dolor</p></li>
<li><p>Lorem ipsum dolor</p></li>
<li><p>Lorem ipsum dolor</p></li>
</ul>
</div>
<div id="footer">
</div>
</div>
</body>
</html>
'space'div ,这只是一点空间。
And the 'space' div has no effect on it, that is just a bit of space.
推荐答案
我已经看过这个幻影空间几次,它的事情添加的隐藏字符(通常来自复制和粘贴)。如果您删除关闭< / div>< / body>< / html>
,然后重新手动键入它们可能会解决问题。
I have seen this phantom space a few times before, its something to do with a hidden character that gets added (usually from copy and paste). If you delete the closing </div></body></html>
then re-type them in manually it may fix the problem.
这篇关于无法删除文档底部的空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!