Skip to content

Instantly share code, notes, and snippets.

View Yi-Lyu's full-sized avatar

Ethan Yi-Lyu

View GitHub Profile
@Yi-Lyu
Yi-Lyu / gist:3112086
Created July 14, 2012 16:49
显示两个图片,一个是SRC里放链接,一个是SRC里直接放BASE64后的图片代码
<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