浏览器窗口加载和大小改变事件示例
摘要:复制代码代码如下: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";
};
【浏览器窗口加载和大小改变事件示例】相关文章:
★ 详解Wondows下Node.js使用MongoDB的环境配置
★ Javascript实现div的toggle效果实例分析
下一篇:
flash遮住div问题的正确解决方法