浏览器窗口加载和大小改变事件示例

时间:2014-02-27    点击:67   
复制代码 代码如下:

window.onload = function() {
var height = document.body.clientHeight;
document.getElementById("vivS").style.height = (height - 20) + "px";
document.getElementById("emd").style.height = (height - 20) + "px";
document.getElementById("ob").style.height = (height - 20) + "px";
};

window.onresize = function() {
height = document.body.clientHeight;
document.getElementById("vivS").style.height = (height - 20) + "px";
document.getElementById("emd").style.height = (height - 20) + "px";
document.getElementById("ob").style.height = (height - 20) + "px";
};
JS获取地址栏参数的几种方法小结
jquery ajaxSubmit 异步提交的简单实现
动态创建script标签实现跨域资源访问的方法介绍
jQuery之选项卡的简单实现
flash遮住div问题的正确解决方法
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved