是否溢出:隐藏应用于 <body>在 iPhone Safari 上工作? [英] Does overflow:hidden applied to <body> work on iPhone Safari?

查看:24
本文介绍了是否溢出:隐藏应用于 <body>在 iPhone Safari 上工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

overflow:hidden 应用于 是否适用于 iPhone Safari?似乎没有.我无法在整个网站上创建包装器来实现...

Does overflow:hidden applied to <body> work on iPhone Safari? It seems not. I can't create a wrapper on the whole website to achieve that...

你知道解决方案吗?

示例:我有一个很长的页面,我只想隐藏折叠"下方的内容,它应该可以在 iPhone/iPad 上运行.

Example: I have a long page, and simply I want to hide the content that goes underneath the "fold", and it should work on iPhone/iPad.

推荐答案

经过多天的尝试,我找到了这个对我有用的解决方案:

After many days trying, I found this solution that worked for me:

touch-action: none;
-ms-touch-action: none;

这篇关于是否溢出:隐藏应用于 &lt;body&gt;在 iPhone Safari 上工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆