Image scaling in IE 11, 10, and 9 is terrible

前端 未结 3 2132
囚心锁ツ
囚心锁ツ 2020-12-15 03:07

Before you say this is an existing question, or that all I need to use is ms-interpolation-mode, or that I just need to have a pre-scaled version of the image on the server

3条回答
  •  误落风尘
    2020-12-15 03:18

    After encountering the same problem myself, I found this Crossbrowser-Bicubic-Image-Interpolation script. I tested it on my Win7 virtual machine in IE11 and it works.

    After downloading the .zip you can open the demo.html file to see how to apply the script. Notice on line 26 of that HTML file there is jQuery code that targets only images with the class "first":

    $('img.first').bicubicImgInterpolation({
    

    But you can remove ".first" to make it target all images:

    $('img').bicubicImgInterpolation({
    

    So that's all you need. jquery.js, bicubicInterpolation.js, and the

提交回复
热议问题