简体   繁体   English

如何使用Jquery或CSS在iFrame中隐藏元素

[英]how can I hide an element inside iFrame using Jquery or CSS

我如何尝试使用JQuery,javascript或CSS在iframe中隐藏元素,但是JQuery无法识别该元素的ID,CSS代码也无法工作,是否有任何方法可以做到这一点

You cannot access the content of the iframe if its loaded from a different domain. 如果iframe是从其他域加载的,则无法访问其内容。 Like your parent page is abc.com and the content in your iframe is from xyz.com 就像您的父页面是abc.com,而iframe中的内容来自xyz.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM