论坛
Firefox 桌面版
Firefox for Android
附加组件
RSS
搜索
登录
注册
kennylong的个人空间
访问量
0
新鲜事
帖子
资料
https://www.firefox.net.cn/index.php?m=space&uid=9061
在firefox里的iframe自适应高度的问题!!!!!
window.parent.document.getElementById("right_space").style.height=document.body.scrollHeight;以上javasript代码在ie里很正常,内嵌页面的body里执行这段代码...
全文
回复
(
5
)
2005-10-28 17:21
来自版块 -
Web 开发技术交流
◆
◆
表情
告诉我的粉丝
提 交
kkk006216
:
window.parent.document.getElementById("right_space").style.height=document.body.scrollHeight + 'px';
(2005-10-28 17:21)
回复
寒羽枫
:
<script type="text/javascript" language="javascript"> <!-- //调整 PageContent 的高度 function TuneHeight() { v...
(2005-10-28 17:21)
回复
comfill
:
我也刚好碰到这个问题,这段代码没错 但是在把页面中的DOCTYPE声明去掉就可以了
(2005-10-28 17:21)
回复
Billy Ao
:
我这里可以自适应高度,使用同样的方法,却不能适应宽度!谁知道什么原因么?
(2005-10-28 17:21)
回复
chpn
:
你的代码我试过了,不论是在IE还是在FireFox中都能正常运行 请检查你的iframe是否设了 id=right_space
(2005-10-28 17:21)
回复
kennylong
加关注
写私信
0
关注
0
粉丝
7
帖子
返回顶部