这么让open()出来的窗口有滚动条?

ZhaoHuiZiXin 2009-07-22 01:33:24
在 IE6.0 中这么让open()出来的窗口有滚动条?
在 IE7.0 中这么让open()出来的窗口有滚动条?
在 火狐 中这么让open()出来的窗口有滚动条?
...全文
881 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
helanye 2009-07-22
  • 打赏
  • 举报
回复

None 不显示任何滚动条。

Horizontal 只显示水平滚动条。

Vertical 只显示垂直滚动条。

Both 同时显示水平滚动条和垂直滚动条。

Auto 如有必要,可以显示水平滚动条、垂直滚动条或同时显示这两种滚动条。要不然也可以不显示任何滚动条。

virus7581 2009-07-22
  • 打赏
  • 举报
回复
这段代码是在被打开的页面设置
virus7581 2009-07-22
  • 打赏
  • 举报
回复

<script language="javascript">
window.onload = function(){
document.body.style.scrollbar3dLightColor = "red";//滚动条颜色
document.body.style.scrollbarArrowColor = "red";//箭头颜色
}
</script>
ZhaoHuiZiXin 2009-07-22
  • 打赏
  • 举报
回复
那么这么显示子窗口的工具栏,这么改变滚动条的颜色? 请高手不吝赐教!!
cb1156 2009-07-22
  • 打赏
  • 举报
回复
在open的那个页面放很多的<br />
xiongzhijian 2009-07-22
  • 打赏
  • 举报
回复
up
BriskJJ 2009-07-22
  • 打赏
  • 举报
回复
up
ZhaoHuiZiXin 2009-07-22
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 lihui_shine 的回复:]
scrollbars = { yes | no | 1 | 0 }
Specifies whether to display horizontal and vertical scroll bars.
The default is yes.
指定是否要显示的横向和纵向滚动条。
默认为yes。

scrollbars=yes与scrollbars=1等效
scrollbars=no与scrollbars=0等效
[/Quote]

但是. window.open("../score/integraljihua.jsp", "exchangesrc", "width=700,height=500,scrollbars=2");
我这样写,也可以打开窗口并且有滚动条.
zjkwangjie 2009-07-22
  • 打赏
  • 举报
回复
当然你也可以这样
html { overflow: -moz-scrollbars-vertical;} 强制一下
zjkwangjie 2009-07-22
  • 打赏
  • 举报
回复
window.open("http://example.com", "name", "scrollbars=1,width=100,height=100");

but note that Firefox will only show scrollbars when the content is larger than the window.
浪尖赏花 2009-07-22
  • 打赏
  • 举报
回复
scrollbars = { yes | no | 1 | 0 }
Specifies whether to display horizontal and vertical scroll bars.
The default is yes.
指定是否要显示的横向和纵向滚动条。
默认为yes。

scrollbars=yes与scrollbars=1等效
scrollbars=no与scrollbars=0等效
ZhaoHuiZiXin 2009-07-22
  • 打赏
  • 举报
回复
scrollbars=1 是什么意思? 可以scrollbars=2 或者 scrollbars=3 吗?
virus7581 2009-07-22
  • 打赏
  • 举报
回复
open("2.html","","scrollbars=1");
ie6,ff都可以,ie7不知道

87,903

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧