CSS的图像缩放:是否有一个webkit替代-moz-crisp-edges? [英] Image scaling by CSS: is there a webkit alternative for -moz-crisp-edges?
本文介绍了CSS的图像缩放:是否有一个webkit替代-moz-crisp-edges?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个100x100像素的图片。我想显示它的大小两倍,所以200x200,我想通过CSS和(显式)而不是由服务器。
I have an image that is 100x100 in pixels. I want to show it twice the size, so 200x200 and I want to do it by CSS and (explicitly) not by the server.
几年后,图像
Mozilla允许指定算法:image-rendering:-moz-crisp-edges;
那么IE也是这样:-ms-interpolation-mode:nearest-neighbor;
Mozilla allows to specify the algorithm: image-rendering: -moz-crisp-edges; So does IE: -ms-interpolation-mode: nearest-neighbor;
任何已知的webkit替代方法?
Any known webkit alternative?
推荐答案
不幸的是,看起来这个功能在WebKit中不存在。查看此最近的错误报告:
Unfortunately, it looks like this feature is absent in WebKit. See this recent bug report:
https://错误.webkit.org / show_bug.cgi?id = 40881
这篇关于CSS的图像缩放:是否有一个webkit替代-moz-crisp-edges?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文