如何调整窗口的大小?

window.resizeTo(width,height)

width:窗口的宽度。

height:窗口的高度。

示例:window.resizeTo(200,200)

如何把窗口调整到满屏显示?

window.moveTo(0,0);

window.resizeTo(window.screen.availWidth,window.screen.availHeight);

window.screen--一个screen对象,它的属性与显示器有关。screen.availWidth是屏幕可用宽度,screen.availHeight是屏幕可用高度。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
用于游戏窗口大小调整AltDrag Made by Stefan Sundin Drag windows with the mouse when pressing the alt key. You can use the middle or right mouse button to resize windows. If you press the shift key while you drag or resize, the window will stick to other windows. You can double-click a window to maximize it. You can double-click with the middle mouse button to roll-up windows. You can edit more settings in AltDrag.ini: * Enable experimental features to be able to use the shift key when normally moving windows. * Enable StickyScreen to make windows always sticky to the screen borders and the taskbar when dragging or resizing (no need to press shift). Fullscreen windows, such as games, will not be dragged or resized. If you experience lag when you move or resize windows, try disabling the mouse cursor switch in AltDrag.ini. AltDrag will automatically check for updates. You can disable this in AltDrag.ini. You can use -hide as a parameter to hide the tray icon. Visit the website at http://altdrag.googlecode.com/ Send feedback to [email protected] If you feel this program is useful, please consider donating money. You can find out how to donate on the website. Changelog --------- 0.7 - 2009-04-24: Added StickyScreen which makes windows automatically stick to the screen borders without needing shift (off by default). Added the ability to roll-up windows by double-clicking with the middle mouse button. Fixed some bugs in ExperimentalFeatures, it's working pretty well now so give it a try. Fixed an annoying error message that sometimes popped up when AltDrag was on autostart. 0.6 - 2009-02-12: Sticky behavior now works with resize (except when resizing in all directions). Fixed tray not being hidden by -hide. Fixed mouse cursor not changing when Aero was disabled in Vista. Language can now be changed in AltDrag.ini. 0.5 - 2009-01-12: You can now resize windows with the middle or right mouse button. You can now double-click a window to maximize it. You can now blacklist cert

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值