gpt4 book ai didi

jquery - $ ('iframe' ).css ('visibility' ,'hidden' ) 无法在 Google Chrome 中工作

转载 作者:行者123 更新时间:2023-12-03 22:26:43 24 4
gpt4 key购买 nike

我正在使用类似的东西

$('ul li').find('iframe').css({'visibility':'visible'});

在 Firefox 和 Opera 中运行良好,

控制台错误:

Unsafe JavaScript attempt to access frame with URL file:///D:/Configuracion/Documents%20and%20Settings/TNMC000/Escritorio/player/roundabout/js/round1.htm from frame with URL http://www.youtube.com/embed/hurnoKLuBD8. Domains, protocols and ports must match.

测试网址:http://toniweb.us/vimeo-like/js/images.htm

有什么想法吗?

-编辑-

我使用它修复了

.invisible{ text-indent:-9999px }

<div class="iframe"><iframe></iframe></div>

$('ul li').find('.iframe').addClass('invisible');

但仍然想知道如何修复仅使用 iframe 的问题。

最佳答案

我知道这有点过时了,但我刚刚遇到了同样的问题。我的解决方案是

css( 'opacity', 0 )

关于jquery - $ ('iframe' ).css ('visibility' ,'hidden' ) 无法在 Google Chrome 中工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7712292/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com