Skip to content

Instantly share code, notes, and snippets.

Avatar

Yi Lyu Yi-Lyu

  • China
View GitHub Profile
@Yi-Lyu
Yi-Lyu / gist:3112086
Created Jul 14, 2012
显示两个图片,一个是SRC里放链接,一个是SRC里直接放BASE64后的图片代码
View gist:3112086
<html>
<body>
<p>
<img src="http://www.w3school.com.cn/i/ct_netscape.jpg" />
</p>
<p>
<img src="data:image/png;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAYEBAQFBAYFBQYJBgUGCQsIBgYICwwKCgsKCgwQDAwMDAwMEAwODxAPDgwTExQUExMcGxsbHCAgICAgICAgICD/2wBDAQcHBw0MDRgQEBgaFREVGiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICD/wAARCABFAEUDAREAAhEBAxEB/8QAHAAAAgMAAwEAAAAAAAAAAAAABwgABQYBAgME/8QAQRAAAQMCBAMFBAYFDQAAAAAAAQIDBAAFBgcREhMhMQgyQVFhFCIjgRUzQlJxkhZTYnKiFyU0Q2OCg5GhssHC0//EABoBAQADAQEBAAAAAAAAAAAAAAACAwUEAQb/xAApEQACAgECAwgDAQAAAAAAAAAAAQIDEQQhBRIxEyIjMkFRYYEkUnFi/9oADAMBAAIRAxEAPwBqaAlADfHmfeA8ISl21Tzl3viDtNqtwDriFeTq9Q22fQq3elCMpqPUxJzhz6vZ4uHMANxIivq3J/GcVp56kxEVLBX23smcfyh9qGH8WVgyBKaHebaS4FaehbkPH+GmB2j/AFZZWTtPWpqYm345sM3Css8jIWlT8b8VHah1A9dhHrXmCUbYv+hkt1ygXOEzOt8huXCkJ3sSWFhxtafNKk6g14WH00BKAlALtnhnRcH5cvCOEpRix4yixfL2yficX7USKrwUn+scHToOdTjHJy6nU9nsvMdMgrFaLbh166iK37dIkrS3IWkKcQhsAclHmNyiST41KRRp5ZXM92Fc3VR5lWpqB085PpM+dBzmezAixb7hC6QZSEuK9mcXHWoAlDjY3pUknmOafCvYldryheMu8wsRZe3QSrbuk2V87rl