如何让我的页面的完整高度?
我刚刚在这个页面上制作了一个 100% 高度的 div,但是(至少在 Chrome 和 Chromium 中),有轻微的顶部和底部边距。我想让 div 覆盖这些,但我不想诉诸于使用指定的高度,因为我将在多个页面上使用相同的设置。
I just made a 100% height div on this page, but (at least in Chrome and Chromium), there are slight top and bottom margins. I want to have the div cover those, but I don't want to resort to using to a specified height, as I'll be using the same set-up across multiple pages.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的 html、body 和 div 元素都有 border:0 和 margin:0 吗?
Do your html, body and div elements all have border:0 and margin:0?
将边框、边距和填充设置为 0。
Set border, margin and padding to 0.