css - 溢出 :hidden not working on mobile browser

标签 css mobile

我使用 overflow:hidden 在我的网页中隐藏我的 unglam div,它在所有网络浏览器中都能正常工作,但在移动浏览器中却不行。谁能帮忙?

body
{
    margin: auto;
    display:block;
    overflow-x:hidden;
    overflow-y:hidden;
    height:800px;
} 

最佳答案

尝试在您的 html 中添加以下行

<meta name="viewport" content="width=device-width, height=device-height">

然后在手机上测试。也许这应该有所帮助。

关于css - 溢出 :hidden not working on mobile browser,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18268300/

相关文章:

flutter - Flutter-在复杂的UI中应该如何进行 Bloc 通信?

html - CSS 网格间距不当

css - 提示 "required"未显示

php - 如何在 html 文档中加入 'include'

javascript - jQuery 选择一个没有其他类的特定类的 div

android - sqlite没有这样的表

iphone - 如何创建具有用户间即时消息功能的 iPhone 应用程序

android - Google Play 特色图片下载

html - 如何在使用 HTML/CSS 加载之前为内容提供指定空间?

javascript - Google Maps Javascript API 移动性能问题