目的:动态获取元素transform中的rotateY属性
问题:如图,

试了ele.style.transform和$ele.css('transform')两种办法,第一种只能获取内联样式;用jQuery出来的是奇怪的matrix3d变换矩阵, 有没有办法用JS直接获取在中设置的'transform'样式的值呢?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师