<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
<分区>
编辑问题以包含 desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem .这将有助于其他人回答问题。
关闭 7 年前。
基本上,当我在我的 PC 上访问我的网站时,一切都已正确格式化。
但是当我缩小时,它会显示背景 html 颜色(Void kinda)。不知道为什么会这样,但一些用户指出平板电脑,特别是 iPhone 仅在正常浏览时显示此信息。
不确定我可以展示什么样的代码作为示例,所以请查看网站:http://toolnet.work/
最佳答案
您必须使用 CSS Viewport Height 单位,其中 1 vh
相对于屏幕高度的 1%。
div#page-wrapper {min-height:100vh;}
或
<div id="page-wrapper" class="gray-bg dashbard-1" style="min-height: 100vh;">
关于html - CSS - 高度/溢出问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33292862/