问一个iframe滚动条的问题
<iframe marginWidth= "0 " id= "my_iframe " name= "my_iframe " scrolling= "yes " marginHeight= "0 " src= "welcome.htm " frameBorder= "0 " width= "98% " height= "97% "> </iframe>
这个iframe允许当引用页超出iframe大小时,出现滚动条,但是这样的话,如果引用页没有超出大小,在iframe右侧垂直方向总是有一个虚的滚动条,很难看,怎么样能去掉?
谢谢!
[解决办法]
<iframe marginWidth= "0 " id= "my_iframe " name= "my_iframe " scrolling= "auto " marginHeight= "0 " src= "welcome.htm " frameBorder= "0 " width= "98% " height= "97% "> </iframe>
[解决办法]
scrolling= "auto "
[解决办法]
scrolling= "auto "
[解决办法]
document.body.style.overflow = "auto ";
document.body.style.overflowX = "hidden ";
[解决办法]
scrolling= "auto "
你在把 height= "97% "去掉看看