设置窗口大小

self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
获取屏幕的宽度:
window.screen.availWidth
获取屏幕的高度:
window.screen.availHeight
当改变窗口大小时触发:window.onresize
window.onresize = function(){
self.moveTo(0, 0);
self.resizeTo(window.screen.availWidth, window.screen.availHeight);
}
posted @ 2009-08-07 15:37  空紫竹  阅读(365)  评论(0编辑  收藏  举报