Posted in Javascript onFebruary 27, 2014
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"; };
浏览器窗口加载和大小改变事件示例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@