qq_那些回忆_2
2017-05-24 21:20
var width = document.innerWidth | document.documentElement.clientWidth; var height = document.innerHeight | document.documentElement.clientHeight; document.write('宽度:' + width + ',高度:' + height); //结果宽度:370,高度:600 //但是为什么documentElement换成body高度就变成了0???
JavaScript进阶篇
469389 学习 · 22585 问题
相似问题