【发布时间】:2009-10-13 18:56:39
【问题描述】:
我正在尝试获取
$('iframe').document.height();
或
$('iframe').contentWindow.document.height();
那些不起作用,而且我没有太多运气搜索。我将不胜感激!
【问题讨论】:
标签: javascript jquery iframe document
我正在尝试获取
$('iframe').document.height();
或
$('iframe').contentWindow.document.height();
那些不起作用,而且我没有太多运气搜索。我将不胜感激!
【问题讨论】:
标签: javascript jquery iframe document
$("iframe",top.document).contents().height();
alert("iframe height=" + $("iframe",top.document).height());
【讨论】:
试试这个:
$(document).ready(function(){
$("iframe").bind('mouseover', function(){
alert($(this).contents().height());
});
});
【讨论】: