Uinapp中js修改css变量,【前端技术】uniapp操作dom,改变css样式
在uniapp中,想给元素添加一些动态的css样式,例如transform,uni.createSelectorQuery().select(".sticke").boundingClientRect((res)=>{uni.createSelectorQuery().select(".sticke").style.transform}).exec()上述代码根本无法实现给元素添加trans...