css - BASE64 in HTML is not working -
i had tried possible way display image using base64 string. none of them working. tested on ie6,7, firefox 3. please tell me wrong below code.
<head> <style type="text/css"> div.image { width:100px; height:100px; background-image:url(data:image/png;base64,ivborw0kggoaaaansuheugaaadia...); } </style> </head> <body> <img src="data:image/jpg;base64,968" /> <img alt="embedded image" src="data:image/png;base64,ivborw0kggoaaaansuheugaaadia..." /> <script type="text/javascript" src="data:text/javascript;base64,dmfyihnjt2jqmsa9ig5ldybzy3jv..."></script> <div class="image"></div> </body>
i tested on ie6,7, firefox 3
it happens none of these support data uris (well, firefox 3 think, not well). you're doing nothing wrong.
if need background image display in these browsers, use traditional image files , url()
instead.
Comments
Post a Comment