标签:
clientWidth = width + padding
clientHeight = height + padding
offsetWidth = width + padding + border
offsetHeight = height + padding + border
var scrollWidth = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth);包括隐藏的区域
var clientWidth = document.documentElement.clientWidth || document.body.clientWidth;
参考自http://www.cnblogs.com/fullhouse/archive/2012/01/16/2324131.html
标签:
原文地址:http://www.cnblogs.com/gstsyyb/p/4901571.html