将图像内容保存在html文件中 [英] Save image content inside html file

查看:290
本文介绍了将图像内容保存在html文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将图像保存在html中?我想用几个图像创建html。也许我需要使用base64解码图像内容并将其粘贴到html标记中。

Is it possible to save image inside html? I want to create html with a few images. Maybe I need to decode image content with base64 and paste it in html markup?

推荐答案

http://jsfiddle.net/MH7gF/

< img alt =src =data:image / png; base64(...)/>

还有一个简单的转换器

这篇关于将图像内容保存在html文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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