IE6:如何让内联 base64 图像与 IE6 一起使用? [英] IE6: How to get inline base64 images to work with IE6?

查看:19
本文介绍了IE6:如何让内联 base64 图像与 IE6 一起使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How do I get IE6 to display inline base64 encoded images?

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

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

This works in Firefox/Chrome/Safari but not IE6.

推荐答案

我的解决方案在 IE6 上运行流畅.或许能帮到你!

My solution run smoothly on IE6. It may help you!

<!--
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>

这篇关于IE6:如何让内联 base64 图像与 IE6 一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆