写博客的时候偶尔发现,明明图片清晰度足够,但是通过CSS设置宽度和高度后图片就变模糊了,使用如下CSS设置可解决这个问题。
```CSS
img {
image-rendering: -moz-crisp-edges; /* Firefox / image-rendering: -o-crisp-edges; / Opera / image-rendering: -webkit-optimize-contrast; /Webkit (non-standard naming) / image-rendering: crisp-edges; -ms-interpolation-mode: nearest-neighbor; / IE (non-standard property) */
}
```