5

在写css的时候为什么无法把一个移动元素的旋转中心定为该元素的正中央?

 2 years ago
source link: https://www.zhihu.com/question/471142980/answer/1988289054
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

在写css的时候为什么无法把一个移动元素的旋转中心定为该元素的正中央?

如题,想要做一个js,其中涉及将鼠标移动到下图的圆弧形元素上让它向右移动,并且让中间的白色小齿轮绕自身中心旋转360°。但是在设定旋转中心的时候都只能…
3
35

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK