标签:
$("iframe#Main", top.document).contents().find("#id");
var top = $("iframe#Main", top.document).contents().scrollTop();//取
$("iframe#Main", top.document).contents().scrollTop(top + 10);//设置
$(parent.document).find("#id");
$(top.document).find("#id");
function parentIframe() {
$(parent.document).find("iframe").each(function(index, ele) {
if (window.location.href.indexOf($(ele).attr("src")) >= 0) {
return $(ele);
}
});
}
标签:
原文地址:http://www.cnblogs.com/ybst/p/5065537.html