Notes
Notes copied to clipboard
el.offsetWidth - el.clientWidth 获取边框宽度
前提是没有Y轴线滚动条.
// 2侧边框宽度的和
const borderWidth = el.offsetWidth - el.clientWidth;