html - 图像在 IE 中显示像素化

标签 html css image internet-explorer

我在我的网站上显示一个 .Jpg 图像。图像在 Firefox 和 Chrome 中看起来不错,但在 IE 中看起来像素化。我正在使用 IE9。

我的代码:

<img src="../TestApp/images/Pic.jpg" border="0" Style="width:770px;height:auto;margin:0px;padding:0px; -ms-interpolation-mode: bicubic;"  />      

我试过 -ms-interpolation-mode: bicubic;那没用 因为它已经过时了

我试过 -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;
}

那没用。我该如何解决这个问题?

最佳答案

我能够通过删除 width:770px;height:auto; 来修复它从图像和在 photoshop 中将图像大小调整为 770px,并将其上传到图像文件夹。

关于html - 图像在 IE 中显示像素化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21867493/

相关文章:

html - application/x-www-form-urlencoded 是 html 表单的默认值吗?

html - 试图使导航栏宽度 100% 以适应一行上的导航项

html - IE 8.0 和 Chrome 表单格式问题

azure - 如何在azure中跨区域复制图像以及数据磁盘?

android - 在 ListView 末尾叠加图像

javascript - 如何使用javascript获取id标签名称

html - 如何在半桌面屏幕上制作全高视频?

javascript - 我可以将背景图像的一部分用作单独的 div 吗?

javascript - 添加按钮 - 并排

html - 试图使图像网格居中并保持在左侧