关于html中的height、innerHeight、outerHeight区别
在前端开发中经常会遇到要为div设置高度,或是获取div高度。 获取div的高度 1)height document.getElementById("xxxid").height(); 或是用jquery写法:$("#xxxid").height(); height指的是元素本身的高度,不包括padding、border、margin,