【发布时间】:2013-11-20 01:21:59
【问题描述】:
我正在尝试放大 Mediawiki 中的图片:Pixel Dungeon。这些图像是像素艺术,所以我想要在缩放时清晰锐利的边缘。我已尝试应用此代码:
<span style="
-ms-interpolation-mode:nearest-neighbor;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;">
[[File:myImage.png|96px]]
<!-- I tried in a HTML document replacing above line with:
<img src="myImage.png" width="96"/>
this produced same result -->
</span>
这在 Firefox 中有效,但 IE 不会将 span 的样式应用于图像,这意味着图像是模糊的。如何让图像具有跨度的样式或将样式直接应用于图像?
我在 wiki 上没有管理员权限,因此 [[File:myImage.png|96px|class=myClass]] 将无法工作,因为我无法创建类。
(查看http://pixeldungeon.wikia.com/wiki/Template:Pixel_image的实际页面)
【问题讨论】: