Warning: Error while sending QUERY packet. PID=4751 in /home/wwwroot/coco/domain/cnlamp/web/wp-includes/wp-db.php on line 1887 iframe | LAMP新闻|技巧|经验|资讯站
现在位置 >首页 > 所有关于iframe的文章
0+
代码如下: [code] function reinitIframe(){ var iframe = document.getElementById("frame_content"); try{ var bHeight = iframe.contentWindow.document.body.scrollHeight; var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; var height = Math.max(bHeight, dHeight); iframe.height = parseInt(dHeight)-140; } catch (ex){} } window.setInterval("reinitIframe()", 200); [/code]
阅读全文
×
腾讯微博