溢出:隐藏在移动浏览器中无法使用 [英] Overflow:hidden not working on mobile browser
本文介绍了溢出:隐藏在移动浏览器中无法使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用overflow:hidden隐藏我的网页中的unglam div,它适用于所有网络浏览器,但不是在移动浏览器。
Im using overflow:hidden to hide my unglam div in my webpage, it works well in all web browser but not in mobile browser. Anyone can help?
body
{
margin: auto;
display:block;
overflow-x:hidden;
overflow-y:hidden;
height:800px;
}
推荐答案
html
<meta name="viewport" content="width=device-width, height=device-height">
并在手机上测试。也许这应该有帮助。
and test on your phone. Maybe this should help.
这篇关于溢出:隐藏在移动浏览器中无法使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文