请查看下面三张图片中的问题。我希望能够将在Mozilla FireFox和Google Chrome已经完美运作的东西扩展到Microsoft Edge中,以达到完美的效果。
Mozilla FireFox: Google Chrome: Microsoft Edge:
我想要在Microsoft Edge中以有意的像素化、非反锯齿方式呈现我的精灵图像放大,但是到目前为止,无论我尝试了什么都没有成功过。我希望能够用优雅的CSS-only方法来拉伸当前的代码,使之在Microsoft Edge中可以像在另外两个主要浏览器中一样正常工作。有什么我还没有尝试过的方法吗?谢谢!
HTML:
<box><icon style="background-position:0px -3081px"></icon></box>
CSS:
box {
float: left;
text-align: center;
width: 40px;
}
icon {
background:url(../layout/icons.png) no-repeat;
background-color: white;
margin: auto;
margin-top: -10px;
width:13px;
height:13px;
display: block;
-ms-transform: scale(3);
-o-transform: scale(3);
-webkit-transform: scale(3);
transform: scale(3);
-ms-interpolation-mode: nearest-neighbor; /* IE8+ */
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
image-rendering: pixelated; /* Chrome */
image-rendering: optimizeSpeed; /* stop smoothing, speeden up instead */
image-rendering: optimize-contrast; /* CSS3 Proposed */
}