css中rotate的用法CSS中的rotate用于将元素旋转一定的角度。可以通过一个transform属性来实现元素的旋转。transform: rotate(30deg);上述代码表示将元素旋转30度。rotate属性还可以使用负值,