Col*_*len 13 html base64 image
我已经了解到可以在HTML页面中嵌入图像,而不是链接到单独的图像文件:
<a href="data:image/png;base64,...(blah blah base64-encoded png goes here)..."
width="70" height="38" alt="image embedded using base64 encoding!"></a>
Run Code Online (Sandbox Code Playgroud)
这是"安全的",因为所有现代浏览器都能够查看图像,只要我坚持像PNG/JPG这样的常见格式吗?是否有任何缺点,除了base64编码图像增加图像大小一点?
谢谢.