gpt4 book ai didi

css - ie中的图像是像素化的

转载 作者:技术小花猫 更新时间:2023-10-29 10:30:20 24 4
gpt4 key购买 nike

我已经将 png 图像上传到网站,它们在 firefox、chrome 和 safari 中看起来很完美,但在 ie 中看起来很糟糕。我已经从 photoshop 中保存了这些文件,它们在图像大小下有一个功能,让您可以选择将图像设置为:双三次自动、双三次锐化、双三次平滑、双三次、双线性和最近邻。这些有帮助吗?

html:

<ul class="social">
<li><a target="_blank" href="https://plus.google.com/+ToadhallcottagesCoUk/posts"><img onmouseout=this.src='/images/googleplusgrey-flat.png' onmouseover=this.src='/images/googleplus-flat.png' src="/images/googleplusgrey-flat.png" width="38" height="38" alt="Toad Hall Cottages Google Plus Page"</a></li>
<li><a target="_blank" href="http://www.twitter.com/thcottages"><img onmouseout=this.src='/images/twittergrey-flat.png' onmouseover=this.src='/images/twitter-flat.png' src="/images/twittergrey-flat.png" width="38" height="38" alt="Toad Hall Cottages on Twitter" /></a></li>
<li><a target="_blank" href="http://www.facebook.com/holidaycottages"><img <img onmouseout=this.src='/images/facebookgrey-flat.png' onmouseover=this.src='/images/facebook-flat.png' src="/images/facebookgrey-flat.png" width="38" height="38" alt="Toad Hall Cottages Facebook page"/></a></li>
<li><a target="_blank" href="http://www.pinterest.com/thcottages/"><img <img onmouseout=this.src='/images/pinterestgrey-flat.png' onmouseover=this.src='/images/pinterest-flat.png' src="/images/pinterestgrey-flat.png" width="38" height="38" alt="Toad Hall Cottages Facebook page" /></a></li>
</ul>

CSS:

img.icon { 
vertical-align: middle;
margin-right: 8px;
margin-left: 2px;
image-rendering:optimizeSpeed; /* Legal fallback */
image-rendering:-moz-crisp-edges; /* Firefox */
image-rendering:-o-crisp-edges; /* Opera */
image-rendering:-webkit-optimize-contrast; /* Safari */
}

最佳答案

旧的IE方法是:

-ms-interpolation-mode: bicubic;

这没有很好的记录。

关于css - ie中的图像是像素化的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21110987/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com