方案一:
在不该显示滚动条时候就不显示滚动条, 就是显示滚动条的位置用网页填充,
该显示滚动条时就显示。
<iframe scrolling="auto">应该是可以的只少在我的机子上可以方案二:
任何时候都不显示滚动条,
但在需要滚动的时候用向上和向下的箭头来操作。
<iframe scrolling="no">就可以了,下面是msdn上解释:HTML <ELEMENT SCROLLING = sScrolling... >
Scripting object.scrolling [ = sScrolling ] Possible ValuessScrolling String that specifies or receives one of the following values:
auto Default. Browser determines whether scroll bars are necessary.
no Frame cannot be scrolled.
yes Frame can be scrolled.
在不该显示滚动条时候就不显示滚动条, 就是显示滚动条的位置用网页填充,
该显示滚动条时就显示。
<iframe scrolling="auto">应该是可以的只少在我的机子上可以方案二:
任何时候都不显示滚动条,
但在需要滚动的时候用向上和向下的箭头来操作。
<iframe scrolling="no">就可以了,下面是msdn上解释:HTML <ELEMENT SCROLLING = sScrolling... >
Scripting object.scrolling [ = sScrolling ] Possible ValuessScrolling String that specifies or receives one of the following values:
auto Default. Browser determines whether scroll bars are necessary.
no Frame cannot be scrolled.
yes Frame can be scrolled.
解决方案 »
- 如何嵌入JS代码进行网站分析
- js如何动态改变onclick参数
- 为什么我用for in 查看Object对象的属性,却什么也没有输出?
- 关于CSS:HEIGHT 与 css frame问题,达人赐教~~
- 求一js
- 求Lostinet Rane源代码一份
- ■■请教:jscript里window.open(urlname,'',outerWidth:1000px;outerHeight:5000px;)改变窗口大小参数,不起作用啊,总是默认大小,怎么
- 关于数学运算函数使用格式的问题
- 一个.js文件用一个函数新建了一个页,这个页的html里联接了另一个.js,为什么现在新建的页不能调用.js的函数
- js中obejct怎么转为String
- 一个基础的问题
- 请帮一下忙
name="main"></iframe>
src:文件的路径,既可是HTML文件,也可以是文本、ASP等
width、height:"内部框架"区域的宽与高;
scrolling:当SRC的指定的HTML文件在指定的区域不显不完时,滚动选项,如果设置为NO,则不出现滚动条;如为Auto:则自动出现滚动条;如为Yes,则显示; FrameBorder:区域边框的宽度,为了让“内部框架“与邻近的内容相融合,常设置为0。
name:框架的名字,用来进行识别。
比如: 当你想用父框架控制内部框架时,可以使用: target="框架的名字"来控制。
<div align="center" style="height:130px;width:243px;">
<script>var timer;</script>
<br>
<input type="button" value="up"
onmousedown="timer1=setInterval('parent.frames[\'in\'].scrollBy(0,-1)',10)"
onmouseup="clearInterval(timer1)">
<input type="button" value="down"
onmousedown="timer1=setInterval('parent.frames[\'in\'].scrollBy(0,1)',10)"
onmouseup="clearInterval(timer1)" >
</div>
in.htm<script>
for(var i=0;i<20;i++)
{
document.write(0+"<br>")
}
</script>