Skip to content

Instantly share code, notes, and snippets.

@Yi-Lyu

Yi-Lyu/gist:3112086

Created Jul 14, 2012
Embed
What would you like to do?
显示两个图片,一个是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+dBzmezAixb7hC6QZSEuK9mcXHWoAlDjY3pUknmOafCvYldryheMu8wsRZe3QSrbuk2V87rlYyr4bg8XGdeTbw8COSuhqUoFOn1f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h4asuFmrbaFNvOypZXvdQhtsqSdG0IQnVe1PPXrVeTQVcV0QHr32qs7WbhJiKkRbc6w4tpxlENvVCknQg8XiHUV4TKkdqXO7UH6fSdPAxIn/lQYLGN2tc2UjbN+jbk19puVDTofx4Rbpki4J9S4idpTCdz9zFGDEslXemWaQppY/Bl33D81VYrZI4rOG0y9MP42NLgOPhjGmY1tfwo9KlWKzp9ulLmtBpaJbmrcdg6ahW3VTmo8q9nZzI80mhVU2/QaxtCUNpQOiQAPlVRoEcbQ62ptxIWhY2qSoagg8iCPWgFEzEwTcMocRPyWWFy8t7w6VNqSN5gPOdWlD7vlr3h6jmBQXCVmFb7W1Ky6xHITZdvw7dEcCdo66NHTVQGvdVzFACnFeNMaYgUljEtwkTXIyiQmV9YlRGh15BXTzoDPUB2aacdcDbaStxXJKEjUk+gFAW1jwner7fGLHa2DJuL504aSNqNO8pxfRKUjvHwoB88lMr4GBsMMQ29HJJ+LJk6aF59Q0U56JA91A8qAJFASgPmuVtt90gP2+4x25cGSgtyIzyQtC0HqFJPI0AuuLey7fLNOeuuV929kbcJW5YZqipn8G3Du1HkFjX9qgBtfrTmGyeBi/Llc9SOXtUVPE+YU3xSPzUBnf0RTLc0g5a3dTx6JWuQ238/d6fOgNbhns/ZjX5QbfixMJWtfJ5qKOPMWj7ql7lH8zgHpQDG5aZMYWwPB4MGMOMsD2h9ei3niP1q9By8kJ0SKAIlASgJQEoCUBwpCVd4A/jQHl7HF/Uo/KKA9UpCRoOQ8qA5oCUBKA//Z" />
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment