Notes icon indicating copy to clipboard operation
Notes copied to clipboard

el.offsetWidth - el.clientWidth 获取边框宽度

Open any86 opened this issue 3 years ago • 0 comments

前提是没有Y轴线滚动条.

image

image

// 2侧边框宽度的和
const borderWidth = el.offsetWidth - el.clientWidth;

any86 avatar Mar 19 '21 05:03 any86