Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
出于某种原因,在我的网站底部有空间,我试图设置包装器的高度,但这并没有改变任何东西......我希望这里有人能帮我一把,我还有很多东西要学,所以请对人好点!:D
谢谢
链接:propertytest.uphero.com
将 html 和 body 标签的高度设置为 100%(在 CSS 中)
html, body { height: 100%; }
首先第一件事,
之后清理那段代码</html>。
</html>
做内的一切</body>。
</body>
然后,使用 . 清除最后一个 div 之前的浮动<p style="clear:both;height:0;"> </p>。你不应该留下任何有尾的花车。
<p style="clear:both;height:0;"> </p>