本文介绍了如何防止Safari滚动溢出:隐藏iframe?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Safari,您可以通过设置style =overflow:hidden;来禁用大多数iframe滚动在iframe上。

With Safari you can disable most iframe scrolling by setting style="overflow: hidden;" on the iframe. However, if you click in the iframe and move the mouse the content scrolls anyhow.

例如:

 / code>。这不漂亮,但它应该工作。

You could add an window.onscroll method that does a window.scrollTo(0, 0);. It's not pretty but it should work.

这篇关于如何防止Safari滚动溢出:隐藏iframe?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 15:46
查看更多