HTML5¼¼Êõ

¹ØÓÚHTML5ÊÖ»ú¶ËÒ³ÃæËõ·ÅµÄÎÊÌâ - ÉñÏɸç¸çìá

×ÖºÅ+ ×÷ÕߣºH5Ö®¼Ò À´Ô´£ºH5Ö®¼Ò 2017-10-20 14:47 ÎÒÒªÆÀÂÛ( )

ͨ³£ÔÚдHTML5ÊÖ»ú¶ËÒ³ÃæµÄʱºò£¬ÎÒÃǻᷢÏÖÒ³ÃæËùÏÔʾԪËصıÈÀý²»ÕýÈ·£¬ÄÇ´ËʱÎÒÃÇÐèÒªÌí¼ÓµÄ¾ÍÊÇ£º meta name= "viewport" content= "width=device-width,initial-scale=1" »òÕßÊÇ meta name= "viewport" content= "width=device-width,initial-scale=1.0

ͨ³£ÔÚдHTML5ÊÖ»ú¶ËÒ³ÃæµÄʱºò£¬ÎÒÃǻᷢÏÖÒ³ÃæËùÏÔʾԪËصıÈÀý²»ÕýÈ·£¬ÄÇ´ËʱÎÒÃÇÐèÒªÌí¼ÓµÄ¾ÍÊÇ£º

<meta name="viewport" content="width=device-width,initial-scale=1">

»òÕßÊÇ

<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes" /> 

ÄÇôÎÒÃÇÀ´¶ÔÕâ¾ä»°½âÊÍһϾÍÊÇ£º

viewport £º ±íʾµÄÊÇÏÔʾ´°¿Ú£»

width=device-width,initial-scale=1.0 £º ±íʾµÄÊÇÏÔʾ´°¿ÚµÄ¿í¶ÈµÈÓÚÉ豸µÄÆÁÄ»¿í¶È£¬initial-scale=1.0£¬¼´³õʼµÄËõ·Å±ÈÀýΪ1.0£»

minimum-scale £º ±íʾµÄÊÇÔÊÐíËõ·ÅµÄ×îС±ÈÀý

maximum £º ±íʾµÄÊÇÔÊÐíËõ·ÅµÄ×î´ó±ÈÀý 

user-scalable £º ±íʾÊÇ·ñÔÊÐíÓû§½øÐÐÒ³ÃæµÄËõ·Å£¬Öµ¿ÉÒÔΪyes»òÕßno

 

ʵÀýÎÊÌâÇé¿ö£º

ÏÖÏó£º

µ±Óû§ÔÚÊÖ»ú¶ËÒ³Ãæµ±Öеã»÷inputÊäÈë¿ò½øÐÐÎı¾µÄ±à¼­Ê±£¬Ò³Ãæ»á×Ô¶¯µÄ±»·Å´ó

½â¾ö£º

ÔÚÒ³ÃæµÄÍ·²¿<head>±êÇ©ÖвåÈë

 »òÕßÊDz»ÔÊÐíÓû§Ëõ·ÅÒ³Ãæ  user-scalable=no

¡¡

1.±¾Õ¾×ñÑ­ÐÐÒµ¹æ·¶£¬ÈκÎתÔصĸå¼þ¶¼»áÃ÷È·±ê×¢×÷ÕߺÍÀ´Ô´£»2.±¾Õ¾µÄÔ­´´ÎÄÕ£¬ÇëתÔØʱÎñ±Ø×¢Ã÷ÎÄÕÂ×÷ÕߺÍÀ´Ô´£¬²»×ðÖØÔ­´´µÄÐÐΪÎÒÃǽ«×·¾¿ÔðÈΣ»3.×÷ÕßͶ¸å¿ÉÄܻᾭÎÒÃDZ༭Ð޸Ļò²¹³ä¡£

Ïà¹ØÎÄÕÂ
  • [js¸ßÊÖ֮·]html5 canvas¶¯»­½Ì³Ì - ÏÂѩЧ¹û - ghostwu

    [js¸ßÊÖ֮·]html5 canvas¶¯»­½Ì³Ì - ÏÂѩЧ¹û - ghostwu

    2017-10-19 10:02

  • [js¸ßÊÖ֮·]html5 canvas½Ì³Ì - 1pxÎÊÌâÒÔ¼°»æÖÆ×ø±êϵÍø¸ñ - ghostwu

    [js¸ßÊÖ֮·]html5 canvas½Ì³Ì - 1pxÎÊÌâÒÔ¼°»æÖÆ×ø±êϵÍø¸ñ - ghost

    2017-10-18 18:31

  • [js¸ßÊÖ֮·]html5 canvas¶¯»­½Ì³Ì - ×Ô¼º¶¯ÊÖ×öÒ»¸öÀàËÆwindowsµÄ»­Í¼Èí¼þ - ghostwu

    [js¸ßÊÖ֮·]html5 canvas¶¯»­½Ì³Ì - ×Ô¼º¶¯ÊÖ×öÒ»¸öÀàËÆwindowsµÄ»­

    2017-10-18 10:00

  • ¹ØÓÚh5Öб³¾°ÒôÀÖµÄ×Ô¶¯²¥·Å - ³¤Àñ

    ¹ØÓÚh5Öб³¾°ÒôÀÖµÄ×Ô¶¯²¥·Å - ³¤Àñ

    2017-10-14 08:01

ÍøÓѵãÆÀ
¿