时间:2021-07-01 10:21:17 帮助过:16人阅读
- <br>window.onload = function() { <br>var height = document.body.clientHeight; <br>document.getElementById("vivS").style.height = (height - 20) + "px"; <br>document.getElementById("emd").style.height = (height - 20) + "px"; <br>document.getElementById("ob").style.height = (height - 20) + "px"; <br>}; <br><br>window.onresize = function() { <br>height = document.body.clientHeight; <br>document.getElementById("vivS").style.height = (height - 20) + "px"; <br>document.getElementById("emd").style.height = (height - 20) + "px"; <br>document.getElementById("ob").style.height = (height - 20) + "px"; <br>}; <br>