晕了,火狐不兼容,,该怎么写 <iframe id="ifa".... onload="this.height=ifa.document.body.scrollHeight"></iframe>这样写谷歌,ie完全兼容,,但是火狐报错ifa.document.body 未定义,,怎么办,急 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var frm = document.getElementById("ifa"); var subWeb=document.frames ? document.frames[iframe].document:frm.contentDocument; if(frm != null && subWeb != null){ frm.height = subWeb.body.scrollHeight;} document.getElementById("ifa").body var frm = document.getElementById("ifa"); var subWeb=document.frames ? document.frames[iframe].document:frm.contentDocument; if(frm != null && subWeb != null){ frm.height = subWeb.body.scrollHeight;}document.getElementById("ifa").body JS的load事件无效,该怎么办呢? 谷歌浏览器 developer tool 显示问题 fusioncharts 显示一半 js如何动态操作table 如何把一个已知道地址如(www.baidu.com)嵌入到指定的邮箱中 高手请来帮忙。 送分!(js源代码)超酷超绚精美图片展示效果 js 弹出窗口的问题 怎么样让一个单选按钮可以控制两个下拉列表框的显示属性。 一个小问题,不知道具体该调用哪个事件。 求一个js,或者jquery插件,要求显示图片的,有大图,下边有对应文字说明,缩略图 对话框关闭的问题 。在线等
var subWeb=document.frames ? document.frames[iframe].document:frm.contentDocument;
if(frm != null && subWeb != null){
frm.height = subWeb.body.scrollHeight;}
var subWeb=document.frames ? document.frames[iframe].document:frm.contentDocument;
if(frm != null && subWeb != null){
frm.height = subWeb.body.scrollHeight;}document.getElementById("ifa").body