如何解决IFrame中的闪烁问题? [英] How to fix flickering in IFrames?

查看:189
本文介绍了如何解决IFrame中的闪烁问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在html中使用iframe。用于将多个html文件加载到单个html文件中。



问题是当我将一页导航到另一页时,我正在gettting闪烁。

如何修复iframe中的闪烁。此外,我正在使用Dhtml过滤器和转换。

解决方案

幸运的是,网络不是Powerpoint。您可以假装它是但是,幸运的是,只适用于Internet Explorer用户。

自从我最初写这个答案以来已经过去了一段时间,我的大脑隐藏起来的凹凸不平表明你可以创建一个重复的iframe,将它放在下面(在z-空间)第一个和(当帧的onload事件触发时) animate 不透明度的原始iframe从1到0,然后完全删除元素。


I am using Iframes in html. for loading multiple html files into single html file .

The problem is when i navigate one page to another i am gettting flickering.

how to fix the flickering in iframes. Also i am using Dhtml Filters and transitions in that.

解决方案

The web is, thankfully, not Powerpoint. You can pretend that it is though, but, happily, only for Internet Explorer users.

As some time has passed since I initially wrote this answer, the more disturbed recessed of my brain suggest that you could create a duplicate iframe, position it below (in z-space) the first, and (when the onload event of the frame fires) animate the opacity of the original iframe from 1 to 0 before removing the element entirely.

这篇关于如何解决IFrame中的闪烁问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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