浏览器窗口加载和大小改变事件示例
摘要:复制代码代码如下:window.onload=function(){varheight=document.body.clientHeight...
复制代码 代码如下:
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";
};
【浏览器窗口加载和大小改变事件示例】相关文章:
★ Jquery跨浏览器文本复制插件Zero Clipboard的使用方法
★ Javascript递归打印Document层次关系实例分析
下一篇:
flash遮住div问题的正确解决方法