移動端html 頭部header程式碼示範
阿新 • • 發佈:2019-01-29
<meta charset=“utf-8” > <meta http-equiv=“content-type” content=“text/html” > <META HTTP-EQUIV="Pragma" CONTENT="no-cache”> //清快取 <meta name=“viewport” content=“initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width=device-width” /> <meta name=“format-detection” content=“telephone=no” /> //電話號碼不顯示為撥號連線; <meta name=“app-mobile-web-app-capable” content=“yes" /> // 網站開啟對web app的支援 <meta name=“app-mobile-web-app-status-bar-style” content=“black-translucent” /> //頂部狀態條的樣式 default 白色 black 黑色 black-translucent:半透明(若值為“black-translucent”將會佔據頁面px位置,浮在頁面上方(會覆蓋頁面20px高度–iphone4和itouch4的Retina螢幕為40px)) <link rel=“stylesheet” href=“css/common.css” /> </header>