embedº¯ÊýÔõôʹÓÃǶÈëͼƬ
embed º¯ÊýÖ§³Ö½«Í¼Ïñ»òýÌåǶÈë html Îĵµ£¬Ê¹ÆäÄÜÔÚÒ³ÃæÉÏÏÔʾ£¬Ó﷨Ϊ ¡£Ëüͨ¹ý½¨ÉèͼÏñ»òýÌåÔªÏòÀ´ÊµÏÖ£¬Ö§³ÖÖÖÖÖÎļþÃûÌã¬Èç jpeg¡¢png¡¢mp4£¬²¢ÇÒ¿ÉÒÔµ÷½â¾ÞϸºÍÓ¦Óà css Ñùʽ¡£ÈôÊÇ embed º¯Êý²»¿ÉÓ㬿ÉÓà src ÊôÐÔ»ò data-uri ÒªÁìÌæ»»¡£
embed º¯Êý¸ÅÊö
embed º¯ÊýÓÃÓÚ½«Í¼Ïñ»òÆäËûýÌåǶÈë HTML ÎĵµÖУ¬Ê¹ÆäÄܹ»ÔÚÒ³ÃæÉÏÏÔʾ¡£Ëüͨ¹ýÔÚ HTML Öн¨ÉèͼÏñ»òýÌåÔªÏòÀ´ÊµÏÖ´ËÄ¿µÄ¡£
Óï·¨
@@##@@
µÇ¼ºó¸´ÖÆ
²ÎÊý
path/to/image.jpg£ºÒªÇ¶ÈëµÄͼÏñ»òýÌåÎļþµÄ·¾¶¡£
ʹÓÃʾÀý
<!-- ǶÈëͼÏñ --> @@##@@ <!-- ǶÈëÊÓƵ --> <video width="320" height="240" controls><source src="embed('video.mp4')" type="video/mp4"></source></video>
µÇ¼ºó¸´ÖÆ
×¢ÖØ£º
embed º¯ÊýÖ»Ö§³ÖÏà¹ØÓÚÄ¿½ñÒ³ÃæµÄ·¾¶¡£
embed º¯ÊýǶÈëµÄͼÏñ²»»á×÷ΪҳÃæµÄÒ»²¿·Ö¼ÓÔØ£¬Òò´ËÔÚ¼ÓÔØÒ³Ãæʱ²»»áÁ¬Ã¦ÏÔʾ¡£
embed º¯ÊýǶÈëµÄͼÏñ¿ÉÒÔÊÇÈκÎÖ§³ÖµÄÎļþÃûÌã¬ÀýÈç JPEG¡¢PNG¡¢GIF¡¢MP4¡¢WMV µÈ¡£
embed º¯ÊýǶÈëµÄͼÏñ¿ÉÒÔµ÷½â¾Þϸ²¢Æ¾Ö¤ÐèÒªÓ¦Óà CSS Ñùʽ¡£
Ìæ»»ÒªÁì
ÈôÊÇ embed º¯Êý²»¿ÉÓûò²»±»Ö§³Ö£¬¿ÉÒÔʹÓÃÒÔÏÂÌæ»»ÒªÁìǶÈëͼÏñ£º
src ÊôÐÔ£ºÖ±½Ó½«Í¼Ïñ URL Ö¸¶¨¸ø img ÔªËØµÄ src ÊôÐÔ¡£
data-uri£º½«Í¼Ïñ±àÂëΪ base64 ×Ö·û´®²¢½«Æä·ÖÅɸø img ÔªËØµÄ data-uri ÊôÐÔ¡£
ÒÔÉϾÍÊÇembedº¯ÊýÔõôʹÓÃǶÈëͼƬµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡