Statically rotate font-awesome icons

后端 未结 6 1081
说谎
说谎 2021-01-30 06:19

I\'d like to statically rotate my font-awesome icons by 45 degrees. It says on the site that:

To arbitrarily rotate and flip icons, use the fa-rotate-* an

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 06:46

    If you want to rotate 45 degrees, you can use the CSS transform property:

    .fa-rotate-45 {
        -ms-transform:rotate(45deg);     /* Internet Explorer 9 */
        -webkit-transform:rotate(45deg); /* Chrome, Safari, Opera */
        transform:rotate(45deg);         /* Standard syntax */
    }
    

提交回复
热议问题