ÈçºÎÔÚhtmlÖÐǶÈëͼƬ£¿ - Web ¿ª·¢ / HTML(CSS)
ÇëÎÊÈçºÎÔÚhtmlÖÐǶÈëͼƬ£¿Ò²¾ÍÊÇ°ÑͼƬ´æÔÚÓÚhtmlÎļþ×ÔÉí£¬¶ø²»ÊÇÒÀÀµÁ´½ÓºÍÍâÔÚͼƬÎļþ¡£
Õâ¸ö¡£¡£¡£²»ÖªµÀ£¬¶¥ÏÂ
Ö§³Ö£¬ÎÒÒ²ÏëÖªµÀ
base64
HTML code:
<img src="data:image/png;base64,
iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAABGdBTUEAALGP
C/xhBQAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9YGARc5KB0XV+IA
AAAddEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIFRoZSBHSU1Q72QlbgAAAF1J
REFUGNO9zL0NglAAxPEfdLTs4BZM4DIO4C7OwQg2JoQ9LE1exdlYvBBeZ7jq
ch9//q1uH4TLzw4d6+ErXMMcXuHWxId3KOETnnXXV6MJpcq2MLaI97CER3N0
vr4MkhoXe0rZigAAAABJRU5ErkJggg==" alt="Red dot" />
ie8ºÍffµÈ¶¼Ö§³Ö
Õâ¸ö£¬»¹ÕæûÓп¼ÂǹýÄØ¡£ÎÒÒ²ÏëÖªµÀ£¬Â¥ÉϵÄÄÇЩ´úÂëÌ«Éî°ÂÁË£¬ËÄܽâÊÍһϡ£¡£¡£
JScript code:
var img = new Image();
$(img).attr("src","images/" + imageName).load(function(){
$("div").attr("src", "images/" + imageName).show();
});
²»ÖªµÀLZÕâÑùÏëµÄ³ö·¢µãÔÚÄÄÀ£¿
½ÚÊ¡HTMLµ¼ÈëËٶȣ¿£¿£¿
¿ÉÊÇÕâÑùÒ»´ó´®±àÂë²»½öʧȥÁËXHTMLµÄ¼ò½àÌØÐÔ£¬¶øÇÒÕâô¶à×Ö½ÚÔØÈë˵ºÄ·ÑµÄʱ¼äÒ²²»ÉÙ°¡£¬
Èç¹ûÕæµÄ¶¼ÕâÑùÄÇimg¾ÍûËü´æÔÚµÄÀíÓÉÁË
¿´¿´ÕâÀïhttp://www.uedsky.com/sky/demo/embed-base64-encoded-image-in-html.html
Ïà¹ØÎÊ´ð£º
ÈçÌ⣬ÔÚWINDOWSµ×ϵÄCODE»á£¬µ«ÔÚLINUXϲ»ÖªµÀÈçºÎʵÏÖ£¬JSµÄ´úÂëÓ¦¸ÃÊDz»Ò»ÑùµÄ¡£ Çó½Ì¡£
·Ö²»¹»ÔÙ¼Ó¡£
http://topic.csdn.net/u/20100113/08/17ba1e71-4c33-43f6-91a5-0e031c86e5ed.html
linux ......
ΪʲôHTMLÒÔ¼°Ò»Ð©ÆäËü±êÇ©»áÏÔʾһЩÌض¨±íÏÖÐÎʽÄØ£¿ÈçHTMLÖеĻ»ÐбêÇ©<BR/>ÔڵײãÊÇÔõÑùʵÏÖµÄÄØ£¿ÏÖʵµÄÔÀíÊÇʲôÄØ
È¥W3C¹Ù·½ÍøÕ¾ÉÏ£¬¿´¿´°É£¡ÎÒÏëÒ»¿´Äã¾ÍÃ÷°×ÁË
ÎҲºͱàÒëÔÀíÓйأ¬ä¯ÀÀÆ÷Àï¿É ......
VBScript code:
while x<100
response.write "<div>xxxx</div>"
x= x+1
wend
Ñ»·Êä³ö html´úÂë
´úÂë×ÜÊÇÒÔÏÂÃæµÄÐÎʽÄÇÑù ÔÚÒ»ÐÐÉϵÄ
HTML code:
<div>xxxx</div> ......
·ÖÒ³µã»÷ÏÂһҳʱ£¬ Ò³Êý»áˢжøÄÚÈݲ»»áˢУ¬Ôõô½â¾ö
Ìù´úÂë
ΪʲôµÚÒ»Ò³ÓÐÄÚÈÝÏÔʾ¶øÒÔºóµÄÿһҳ¶¼Ã»ÓУ¬²¢ÇÒÒ²´ÓÊý¾Ý¿âÖжÁ³öÕâЩÊý¾ÝÁË
1¡£Õâ¸öÎÊÌâºÍCSSûÓйØϵ
2¡£²»ÖªµÀÄãÊÇÔÚǰ̨·ÖÒ³µÄ»¹ÊÇ ......
ÎÒÏëÓÃhtmlÉú³ÉÒ»¸ö±¨±í£¬×ó±ß¹æ»®ÁËÒ»¸öµ¼º½½çÃ棬ÓÒ±ßÊÇһЩÏÔʾÄÚÈÝ ÒªÇóÕâ¸öµ¼º½½çÃ滹ÄÜÉìËõ£¬»¹¿Éµã»÷ºóÒþ²Ø,
Èç¹ûʹÓÿò¼ÜµÄ»î£¬¾ÍµÃÒª¼¸¸öhtmlÎļþ×éºÏ£¬ÒªÇóÖ»ÓÐÒ»¸öhtmlÎļþ£¬Èç¹ûҪʹÓÃtable£¬×Ô¶¯ÉìËõ£ ......