设置iFrame CSS显示:加载期间无 [英] Setting iFrame CSS to display:none during load

查看:308
本文介绍了设置iFrame CSS显示:加载期间无的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个:

I have this:

<div class="upload_slide">
    <iframe class="upload_iframe" style="visibility:hidden;"></iframe>
</div>

如果我将一些文件发布到iFrame并设置 .upload_slide display:none; ,当它加载时,这会影响iFrame的加载或加载完成时的检测结果吗?

If I then post some files to the iFrame and set .upload_slide to display:none;, while it's loading, will this affect the loading of the iFrame or the detection of when it finished loading?

推荐答案

不,iFrame的加载和加载检测不应该通过将显示设置为none来降低。

No, the iFrame's loading and load detection should not be compromised by setting the display to none.

CSS仅用于样式,它不能影响DOM。

CSS is just for style, it has no ability to affect the DOM.

这篇关于设置iFrame CSS显示:加载期间无的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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