1、 offsetWidth/offsetHeight 返回值包含 content + padding + border,效果与
e. getBoundingClientRect ()相同
2、 clientWidth/clientHeight返回值只包含content + padding,如果有滚动条,也不包含 滚动条
3、scrollWidth/scrollHeight 返回值包含 content + padding + 溢出内容的尺寸

Was this helpful?

0 / 0

发表回复 0

Your email address will not be published.