function SetCwinHeight(){
var bobo=document.getElementById("bobo"); //iframe id
if (document.getElementById){
if (bobo && !window.opera){
if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
bobo.height = bobo.contentDocument.body.offsetHeight;
}else if(bobo.Document && bobo.Document.body.scrollHeight){
if(bobo.Document.body.scrollHeight<500)
bobo.height=500;
else if(bobo.Document.body.scrollHeight>900)
{
bobo.height=600;
bobo.scrolling="no";
}
else
{
bobo.height = bobo.Document.body.scrollHeight;
}
}
}
}
--------------------
bobo是一个IFrame,这段代码可以成功设置bobo.height,却不能设置Scrolling的属性为no,为什么?
--------答案不对呀
为什么这里不可以成功设置iframe的scrolling属性?
答案:2 悬赏:0
解决时间 2021-03-06 09:59
- 提问者网友:冷天寄予
- 2021-03-05 23:47
最佳答案
- 二级知识专家网友:你好陌生人
- 2021-03-06 01:12
bobo.style.scrolling ?
全部回答
- 1楼网友:放肆的依賴
- 2021-03-06 02:48
滚动能的。
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |