摘要: 它们都是Element的属性,表示元素的宽度。 Element.scrollWidth 内容+内边距+溢出尺寸 不包括边框和外边距 ==实际内容 Element.offsetWidth 元素的宽度(内容+内边距+边框+滚动条)==整体,整个控件 Element.clientWidth 内容+内边距, 阅读全文
posted @ 2018-09-02 21:36 冰锐格 阅读(715) 评论(0) 推荐(1) 编辑