我在我的网站上显示一个.Jpg图像。图像在Firefox,Chrome中看起来不错,但在IE中它看起来像素化。我正在使用IE9。图像在IE中显示为像素化图像
我的代码:
<img src="../TestApp/images/Pic.jpg" border="0" Style="width:770px;height:auto;margin:0px;padding:0px; -ms-interpolation-mode: bicubic;" />
我试图-MS插值模式:双三次;那是行不通的因为它已经过时了
我试过-ms-interpolation-mode:nearest-neighbor;
我试图
<div class="column">
<img src="../TestApp/images/Pic.jpg" border="0" Style="width:770px;height:auto;margin:0px;padding:0px; -ms-interpolation-mode: bicubic;" class="Plate"/>
</div>
.column {
float:left;
display:inline; /* prevent IE margin doubling */
width:360px;
padding-top:1em;
margin-right:60px;
text-align:left;
}
.plate {
display:block;
margin:0 auto 0.5em;
}
,没有工作。我该如何解决这个问题?
图像的内在尺寸是什么? –
为什么所有的随机资本?他们不仅让你的帖子难以阅读,而且还会在你的代码中积极引发问题。 –
如果你需要一个thumnbail请尝试:https://github.com/Lygin/ie-bicubic-img-interpolation-plugin/wiki – Spirit