数据:image / gif; ie7中的base64 <img/>源

时间:2012-01-18 09:52:59

标签: javascript html internet-explorer-7

我想在ie7中使用嵌入式base64图像。

示例:http://jsfiddle.net/mfPnK/

我尝试包括“ie9.js”,没有成功:

http://code.google.com/p/ie7-js/source/browse/test/object-base64.html

任何人都知道如何解决这个问题?感谢

2 个答案:

答案 0 :(得分:3)

您无法使用库向IE7添加base64支持。这是一项无法使用JavaScript添加的功能。

答案 1 :(得分:1)

我不认为你可以在IE7中这样做,但你可以使用MTHML来获取内联图像,这里有一个很好的帖子:http://www.phpied.com/mhtml-when-you-need-data-uris-in-ie7-and-under/

相关问题