ã¹ãã¼ããã©ã³ã¨position:fixedã®ãã° iPhoneã§ã¯iOS5ããAndroidã§ã¯2.2ããposition:fixedã«å¯¾å¿ããã¦ã¹ãã¼ããã©ã³ã§ãåºå®é ç½®ãå©ç¨ã§ãã¤ã¤ããã¾ããã¨æãããè²ã ã¨è½ã¨ãç©´ãå¤ãã®ã§ã¾ã¨ãã¦ããã¾ãã Androidã§ã¯user-scalable=noãå¿ é <meta name="viewport" content="user-scalable=no" /> Androidã§ã¯viewportã«user-scalable=noã®æå®ããªãã¨position:fixedãåãã¾ãããiPhoneã§ã¯user-scalable=noã®æå®ããªãã¦ãposition:fixedãåãã¾ãããã£ããæåãå¾®å¦ãªã®ã§user-scalable=noã¯æå®ãã¦ãããã»ããè¯ãã§ãããã ãµã³ãã«ï¼user-scalable=noããï¼ ãµã³ãã«ï¼us
Androidã®position:absoluteã¨ãã©ã¼ã ã®åé¡ Androidã§ã¯position:absoluteãããè¦ç´ å ã«ãã©ã¼ã é¨åãããã¨è²ã ã¨ä¸å ·åãããããã§ãã ä¾ãã°ã次ã®ããã«ãã©ã¼ã é¨åã®èæ¯ã«ãªã«ãæååããããããªç¶æ ã«ãã¦ãã¾ãã¨Android2.2ã§ãã©ã¼ã ãé¸æã§ããªããªãã¾ããAndroid2.1ã§ã¯ã¡ããã¨é¸æã§ããã <style> body{ margin:0; } #search{ width:100%; height:100px; background:blue; position:absolute; } #back{ width:100%; height:100px; } </style> <div id="search"> <br> <select> <option>é¸æ1</option> <option>é¸æ2</option> <
Androidã§font-weight:boldãé©ç¨ããæ¹æ³ Androidã§ã¯æ¥æ¬èªã«font-weight:boldãé©ç¨ããã¾ããã <p style="font-weight:normal">ãã¼ãã« normal</p> <p style="font-weight:bold">ãã¼ã«ã bold</p> ãã®HTMLãAndroidã§ç¢ºèªããã¨æ¬¡ã®ããã«ãªãã¾ãã æ¥æ¬èªã ã太åã«ãªã£ã¦ããªãã§ãããããã©ã«ãã®ãã©ã³ãã«boldä½ããªãããããã§ãããããã¤ã¹æ¯ã«ãã©ã³ããå¤ããã®ã§font-familyã§ã¯åé¿ã§ããã 対çã¨ãã¦ã¯font-weightã®ä»£ããã«text-shadowãå©ç¨ãã¦å¤ªåã«ãã¾ãã <p style="text-shadow:1px 0 0 black">ãã¼ã«ã bold</p> ãã ããã®æ¹æ³ã ã¨iPhoneã§ã¯å¤ªåã«ãªããã©Androidã§
HTML5ã使ããã¹ãã¼ããã©ã³OS HTML5ã使ããã¨è¨ãã¨å°ãè¨ãããã§ãããheaderãªã©ã®æ°è¦ç´ ã«å¯¾ãã¦display:blockãæå®ããã¦ããOSã§ãã iPhoneãªã©ã§ã¯iOS4.0以ä¸ãããAndroidã§ã¯2.2ããdisplay:blockãé©ç¨ããã¦ãã¾ãã ãã以ä¸ã®ãã¼ã¸ã§ã³ã§HTML5ãå©ç¨ãããå ´åã¯ã article, aside, figure, footer, header,hgroup, nav, section { display:block; } ã¨ãã£ãdisplayã®æå®ãå¿ è¦ã§ãã Safariãææ°ã®iPhoneã§æ¤è¨¼ãã¦ããå¿ããã¡ã«ãªããããªã®ã§ã¡ã¢ã 追è¨ï¼@hilokiãããdialogã¯ããæãã§ããããããã§ãï¼ãã¨ææããã ãã®ãã§åé¤ãã¾ãããããããã°ããã¤ã¯HTML5ããåé¤ããããã§ãããã ã¹ãã³ãµã¼ããªã³ã¯
ãã¹ãã対å¿ãµã¤ãå¶ä½ã®ãã詳ããè¨äºã¯ãã¡ãã 1.ã¡ãã¥ã¼ç·¨ 2.HTMLã¨CSSã§ç»åãæãç·¨ï¼åç·¨ï¼ 2.HTMLã¨CSSã§ç»åãæãç·¨ï¼å¾ç·¨ï¼ ã¹ãããµã¤ãã®ä½ãæ¹é¢é£ã®ããã°ã¨ããè¦ã¦ã¦ãviewportå¨ãã®åºæ¬çãªè¨å®ã¯æ¸ããã¦ããã®ã§ããã å人çã«éè¦ã ã¨æããã¤ã³ããããªããªãã©ãªããæ¸ãã¦ãã£ããããªããããªæ°ãããã®ã§ãã¾ã¨ãã¦ã¿ã¾ããã ããã¯ã ã¨ã«ããå å´ã®HTMLè¦ç´ ãããåºããªãããã«ä½ã ã©ããã¦ãï¼ ãµã¤ãã¯ãã¹ãããµã¤ãã¨ããã®ã¯ç¸¦ã¹ã¯ãã¼ã«ãããããããªãã§ãããã ä¾ãã°ãiPhoneã§è¨ãPortraitï¼ç¸¦ï¼è¡¨ç¤ºã®ã¨ããæ¨ªå¹ 320pxãè¶ ãããã¼ã¸æ§æã«ãªãã¨ã ããããªæ¨ªã¹ã¯ãã¼ã«ãçºçãã¦ãã¾ãã¾ãã viewportã§æ¡å¤§ã¨ãã®ç¦æ¢ããããªã£ã¦ãã¦ãããããªãã¾ãã ï¼ã¾ããæ¡å¤§ã¨ã¯æå³ãéãã®ã§å½ç¶ãªã®ã§ãããããï¼ å ·ä½çã«ã©ãã
iPhoneã¨Androidã«æè¼ããã¦ãããã©ã¦ã¶ã¯åãWebkitã§ããããã¼ã¸ã§ã³ã®éããã表示ãè¥å¹²ç°ãªãé¨åãããããã§ããããã§iPhoneã§è¡¨ç¤ºãããå ´åã¯bodyã«class=âiphoneâãAndroidã§è¡¨ç¤ºãããå ´åã¯bodyã«class=âandroidâãä»ä¸ããjavascriptããç´¹ä»ãã¾ãã ãµã³ãã« ãµã³ãã« â»iPhone/Androidã§è¦ã¦ã¿ã¦ãã ããã ãã¦ã³ãã¼ã ip-ad.zip åä½ç¢ºèªæ©ç¨® docomo xperiaãsoftbank desire iPhone3GãiPod touch 使ãæ¹ ãã¦ã³ãã¼ãããip-ad.jsãjquery.jsã¨ä¸ç·ã«èªã¿è¾¼ãã ãã§åä½ãã¾ãã HTMLã³ã¼ãã¼ããããã³ãã¨ã³ãã¨ã³ã¸ãã¢ã«ã¹ãããããããã«å¿ è¦ãªç¥èã¨æè¡ã解説ã ç¾å ´ã§æ±ãããã人æã¨ãªãããã«ã¯ãä½ãç¥ã£ã¦ãã¦ãä½ãã§ããªã
Webãµã¤ããiPhone/Androidã«æé©åããã«ã¯ãPCãµã¤ãã¨ã¯å¥ã«ã¹ãã¼ããã©ã³å°ç¨ãµã¤ããç¨æããã®ããã¹ãã§ãããã³ã¹ããæéãªã©ã®çç±ã§é£ããå ´åãããã¾ããããã§ä»åã¯ãPCåãã®Webãµã¤ãï¼HTMLï¼ã¯ãã®ã¾ã¾å©ç¨ããCSSã¨JavaScriptã ãã§ã¬ã¤ã¢ã¦ãããã¶ã¤ã³ãå¤æ´ããï½¢ã¯ãã¹ããã¤ã¹ãµã¤ããã®ä½ãæ¹ã説æãã¾ããé¡æã¯ãçè ãå¶ä½ãããiPhone/Android Webãµã¤ãå¶ä½åºå¼µã»ããã¼ãã®Webãµã¤ãã§ãã ãã®ãµã¤ãã¯1ãã¼ã¸å®çµã®åç¥ãµã¤ãã§ãå·¦å³2段çµã¿ã§æ§æããã¦ãã¾ããå·¦ã«ã©ã ã«ã¯ããã²ã¼ã·ã§ã³ã¡ãã¥ã¼ããå³ã«ã©ã ã«ã¯ã¡ã¤ã³ã³ã³ãã³ããé ç½®ããããã²ã¼ã·ã§ã³ã¡ãã¥ã¼ãã¯ãªãã¯ããã¨ãã¼ã¸å ãªã³ã¯ã§è¡¨ç¤ºããé¨åãå¤ãããã¾ããiPhone/Androidããã¢ã¯ã»ã¹ããã¨ãããã®ãã¼ã¸ã以ä¸ã®ããã«è¡¨ç¤ºããããã«ãã¾ãã PCãµã¤ãã®ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}