我在我的網站上顯示一個.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