框架的高度怎么才能根据网页自动伸缩 框架的高度怎么才能根据网页自动伸缩 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <script> function autoResize() { try { document.all("CommentNewListIframe").style.height = CommentNewListIframe.document.body.scrollHeight; } catch(e) { } } </script>这个昂 <iframe frameborder="0" name="CommentNewListIframe" id="CommentNewListIframe" scrolling="no" src="ceshiye.aspx" STYLE="height:100%; aho:expression(autoResize());width=100%"></iframe> 我一般都是在框架打开的页面里写js重新定义框架的大小的var objFrm=parent.document.getElementById("框架ID");objFrm.style.width=document.body.scrollWidth;objFrm.style.height=document.body.scrollHeight; getElementById 为什么找不到框架啊 刚试了一下,super_kiss() 的真是强啊! super_kiss 的方法简单实用。非常感谢!海南不言 2010-06-26 做论坛时怎么计算今日发帖量 C#中TIMER对象不释放内存资源的问题 如何在显示的时间后面添加am和pm,有分 ListBox多值选择问题 请教:触发CheckBoxList事件后如何获取当前选择个数呢? .net 2.0中的分页问题 Calendar怎么从数据库中调出数据并插入到相应的日期中 高分悬赏 现在有一个DataTable,Table里有一条记录,关于如何修改它的值如何办? 散分 奇怪啊。gridview加了删除前确认,但是点了取消,他还是删除了啊。 求高手:C#怎么判断一个数组中是否存在某个元素啊?急啊!
function autoResize()
{
try
{
document.all("CommentNewListIframe").style.height
= CommentNewListIframe.document.body.scrollHeight;
}
catch(e)
{
}
}
</script>这个昂
src="ceshiye.aspx" STYLE="height:100%; aho:expression(autoResize());width=100%"></iframe>
objFrm.style.width=document.body.scrollWidth;
objFrm.style.height=document.body.scrollHeight;