摘要: 一、概念 它们都是Element的属性,表示元素的宽度: Element.clientWidth 内容+内边距-滚动条 不包括边框和外边距 == 可视内容 Element.scrollWidth 内容+内边距+溢出尺寸 不包括边框和外边距 ==实际内容 Element.offsetWidth 元素的 阅读全文