html - Mobile-Chrome 中网页底部的神秘空白

标签 html css viewport mobile-chrome

我已经在 SO 上查看了许多“页面底部的神秘空白”问题,并多次使用 viewport 标签,但我仍然无法弄清楚我在做什么做错了!

有问题的页面是:http://www.seniorchoicesunl.com/error_documents/error401.php

这是 Chrome 开发者工具在移动设备上的样子:enter image description here

对我做错了什么有什么想法吗?

编辑:

设置ANY initial-scale 是个坏消息!它使字体太小! 看一看: enter image description here

在保持台式机和平板电脑不变的情况下,理想的移动外观是这样的:

enter image description here

附言解决此问题可以相互解决我在其他网页上遇到的其他相关问题。

最佳答案

将其添加到您的 css 文件之上 :)

html,body {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    overflow-x: hidden;
}

它为我修复了错误。

关于html - Mobile-Chrome 中网页底部的神秘空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39070028/

相关文章:

html - Google/iPhone 输出不同,iphone 有很多空白

javascript - HTML5 地理定位问题

html - 垂直居中,父级高度可调

Javascript+Css,请求解决方案 : mouseover hover displays div, 保持活跃直到mouseoff/click关闭

css - 如何使您的 css 断点在移动设备上工作? (已使用视口(viewport)元标记)

css - 元视口(viewport)和宽度=设备宽度与百分比尺寸

html - 如何将 div 放在其他 div 之上?

jquery - html 中的订单列表

javascript - Chrome 地址栏在移动网站上留下空白

javascript - 固定在页面底部停在给定位置的 div