Image scaling causes poor quality in firefox/internet explorer but not chrome

前端 未结 10 1752
一个人的身影
一个人的身影 2020-11-27 03:44

See http://jsfiddle.net/aJ333/1/ in Chrome and then in either Firefox or Internet Explorer. The image is originally 120px, and I\'m scaling down to 28px, but it looks bad pr

10条回答
  •  情歌与酒
    2020-11-27 04:33

    I've seen the same thing in firefox, css transform scaled transparent png's looking very rough.

    I noticed that when they previously had a background color set the quality was much better, so I tried setting an RGBA background with as low an opacity value as possible.

    background:rgba(255,255,255,0.001);
    

    This worked for me, give it a try.

提交回复
热议问题