CSS3 transform not working

后端 未结 5 632
陌清茗
陌清茗 2020-11-29 20:25

I am trying to transform my menu items by rotating them 10 degrees. My CSS works in Firefox but I\'ve failed to replicate the effect in Chrome and Safari. I know IE doesn\'t

5条回答
  •  情深已故
    2020-11-29 20:48

    In webkit-based browsers(Safari and Chrome), -webkit-transform is ignored on inline elements.. Set display: inline-block; to make it work. For demonstration/testing purposes, you may also want to use a negative angle or a transformation-origin lest the text is rotated out of the visible area.

提交回复
热议问题