html - IE6 : How to get inline base64 images to work with IE6?

标签 html internet-explorer image conditional base64

如何让 IE6 显示内联 base64 编码图像?

<img src="data:image/png;base64,....." />

这适用于 Firefox/Chrome/Safari,但不适用于 IE6。

最佳答案

我的解决方案在 IE6 上运行流畅。可能对你有帮助!

<!--
Content-Type: multipart/related; boundary="=_data-uri"
-->
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#pic {
width:670px;height:710px;
background-image: expression("url(mhtml:" + window.location + "!locoloco)");
}
</style>
</head>
<body> 

<div id="pic" ></div>
<div id=test style="display: none;">

--=_data-uri
Content-Location:locoloco
Content-Transfer-Encoding:base64

iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8  /w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==
--=_data-uri--

</div>
</body>
</html>

关于html - IE6 : How to get inline base64 images to work with IE6?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1575333/

相关文章:

javascript - 未终止的字符串常量错误仅适用于 IE 9

image - 基于细节缩放图像

CSS图像最大宽度设置为原始图像大小?

html - CSS使下一行与上一行对齐

html - Excel VBA 代码不适用于 Internet Explorer 11

html - 输入/返回键不移动到文本区域中的新行

html - 媒体查询不支持 Safari

javascript - 是否可以经常更改浏览器文档模式?

javascript - "empty cache and hard reload"在ie中相当于吗?

javascript - 如何将延迟加载与 TinyMCE 结合?