Can you use CSS to mirror/flip text?

后端 未结 14 2290
旧时难觅i
旧时难觅i 2020-11-28 01:27

Is it possible to use CSS/CSS3 to mirror text?

Specifically, I have this scissors char “✂” () that I\'d like to display pointing left a

14条回答
  •  温柔的废话
    2020-11-28 02:00

    For cross browser compatibility create this class

    .mirror-icon:before {
        -webkit-transform: scale(-1, 1);
        -moz-transform: scale(-1, 1);
        -ms-transform: scale(-1, 1);
        -o-transform: scale(-1, 1);
        transform: scale(-1, 1);
    }
    

    And add it to your icon class, i.e.

    
    

    to get a search icon with the handle on the left

提交回复
热议问题