var ifrm = document.createElement("iframe"); var linkFrm = " https://ExternalLink/ ";
Example:
var x = linkFrm.document.getElementsByClassName("class");
x.style.height = "0px";
x.style.width = "0px";
如果某个东西在iframe
,并且您无权访问iframe
的原始位置,那么您就无法操作其中的元素。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.