Element.clientWidth property

The clientWidth property value of inline elements and elements without CSS styles is 0. The Element.clientWidth property represents the internal width of the element in pixels. This attribute includes padding, but does not include borders, margins, and vertical scroll bars (if any).

intElemClientWidth is an integer that represents the clientWidth of the element. clientWidth is a只读属性。

Guess you like

Origin blog.csdn.net/dyw3390199/article/details/115017962