How to flip images horizontally with HTML5

前端 未结 7 1175
暖寄归人
暖寄归人 2020-11-28 07:14

In IE, I can use:


to implement an image flip horizontally.

7条回答
  •  春和景丽
    2020-11-28 08:14

    You don't need HTML5, it can be done with CSS same as in IE:

    -moz-transform: scale(-1, 1);
    -webkit-transform: scale(-1, 1);
    -o-transform: scale(-1, 1);
    transform: scale(-1, 1);
    filter: FlipH;
    

提交回复
热议问题