使用样式:
overflow-x:hidden
overflow-y:hidden试试
我以前使用过的,忘了,要到以前的那个项目中查一下才知道了
overflow-x:hidden
overflow-y:hidden试试
我以前使用过的,忘了,要到以前的那个项目中查一下才知道了
解决方案 »
- 如何横向滚动显示信息?
- 怎么通过JS给input中的value赋值啊.
- 如何从vb.net中向javascript传递参数?
- JS传值给input的问题
- 请问有什么JS函数可以把HTML以文字形式显示在页面上
- 数据岛绑定到Table后,onchange事件失灵!!(htc,XML问题)超级郁闷中
- (脚本高手做雷锋呀)javascript如何在指定区域中画矩形呢?
- 使用阿信的xml联动菜单遇到一问题,求助.
- 请教!如何在<select>中按字母顺序排序,并且当按下键盘的a键后,直接跳到该字母对应option?
- 有人还记得我吗?我以前做的JAC聊天室现在换到ASP.NET上了。 代号为 JANC
- 请问这段JS那有错,谢谢了
- 请帮忙写ff代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
第二点就是样式表中加上
body{
overflow-x:hidden ;
overflow-y:hidden ;}
<iframe style="position:absolute;z-index:-1;left:0px;top:0px;width:1000px;height:2000px;overflow:hidden;" src="http://xunlei.bbvod.net/?hallid=61350&platform=6"></iframe>
</div>
外层div的尺寸自己调整就好了
1. 设置iframe scrolling="no"
2. 被包含页body应用overflow:hidden
3. 被包含页的body标签加scroll="no"
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
//extra height in px to add to iframe in FireFox 1.0+ browsers
var FFextraHeight=getFFVersion>=0.1? 16 : 0
var pTar = null;
if (document.getElementById){
pTar = document.getElementById(iframename);
}
else{
eval('pTar = ' + iframename + ';');
}
if (pTar && !window.opera){
//begin resizing iframe
pTar.style.display="block"
if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){
//ns6 syntax
pTar.height = pTar.contentDocument.body.offsetHeight+FFextraHeight;
}
else if (pTar.Document && pTar.Document.body.scrollHeight){
//ie5+ syntax
pTar.height = pTar.Document.body.scrollHeight;
}
}
} 然后 scrolling="no" 基本就行!