Safari Mobile iframe with inner iframe size problems

天大地大妈咪最大 提交于 2019-12-06 05:07:34

问题


I have a "simple" web application that has a navigation and a content area. Within the content area I have a iframe with more complex content. Unfortunately the content in the iframe has another iframe.

The get an overview look here:

.

In my scenario it is quite helpful to see the full iframe content, so we hide the navigation and change the content size on top of it:

If I go back now to initial view the iframe inside the iframe doesn't change the size:

This happend only on Safari mobile (iPad) OS 5.1. On normal Safari browser it works as expected. Does anyone have a similar problem or an idea what is happening here?

Of course a solution would be even better :)


回答1:


If this is an issue that only occurs in Safari or iPad you could add some cross-browser CSS support to tell the specific browser how it should appear. I like using this one

This allows you to add specific css instructions such as

.[os].[browser] .mylink { font-weight: bold; } -> without space between .[os] and .[browser]

.iphone.safari .scrollingframe {css style}

Hope this helps.



来源:https://stackoverflow.com/questions/10299897/safari-mobile-iframe-with-inner-iframe-size-problems

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!