Html - 直接在html中嵌入图像(旧式样) [英] Html - embed image directly in html (old school style)

查看:94
本文介绍了Html - 直接在html中嵌入图像(旧式样)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 < IMG SRC =data:image / gif; base64,RAAA ......更多数据.....> 

但是在当天,当Netscape是一个可以实现的浏览器时,还有另一种方式这个。我不记得了。



有任何建议,我们将不胜感激。 解决方案

p>我不知道任何其他特定于Netscape(RIP)的方式,并且快速搜索向我显示,IMG SRC = data:在2003年已得到Netscape的支持。



我发现了一些看起来像你的IE特定标签,但从未使用它们(不确定它会有帮助):

 < img datasrc =bardatafld =foo> 

有关源代码中嵌入图像的更多信息(可帮助不熟悉此主题的读者):
http://www.websiteoptimization.com/speed/tweak/inline-images/



以下是在IE6下使用IMG SRC = data:的方法:
http://web.archive.org/web/20080702001125/http://ddzoom.net/ jsimages / out.htm


I know you can embed images in html today with:

<IMG SRC="data:image/gif;base64,RAAA...more data.....">

But back in the day, when Netscape was a browser to implement for, there was another way of doing this. I can't remember.

Any suggestions would be appreciated.

解决方案

I don't know any other way specific to Netscape (RIP) and a quick search showed me that "IMG SRC=data:" has been supported by Netscape already in 2003.

I found out some IE specific tags that look like yours, but never used them (not sure it will help):

<img datasrc="bar" datafld="foo">

Some more info on embeded images in sources here (can help readers unfamiliar with this topic): http://www.websiteoptimization.com/speed/tweak/inline-images/

Here is a way to use "IMG SRC=data:" under IE6: http://web.archive.org/web/20080702001125/http://ddzoom.net/jsimages/out.htm

这篇关于Html - 直接在html中嵌入图像(旧式样)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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