-scrollWidth-scrollLeft-clientWidth-offsetLeft-offsetWidth-style.left-各种原生宽高和偏移距 小小程序员02 2018-07-13 206 阅读1分钟 scrollWidth节点的正文全文宽 scrollLeft设置、获取节点的滚动条距离最左边的距离 clientWidth节点的可见区域宽 offsetLeft节点相对于父节点的左偏移距离 offsetWidth节点的可见区域宽 style.left = //设置节点的left style.left // 获取节点的left