<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no;"/>
// 기본
<title>웹사이트 제목</title>
<meta name="description" content="설명">
<meta name="Keywords" content="키워드1, 키워드2 ...">
// Open Graph Protocol (SNS)
<meta property="og:title" content="제목">
<meta property="og:description" content="설명">
<meta property="og:keyword" content="키워드1, 키워드2 ...">
<meta property="og:image" content="대표 이미지(200x200)">
<meta property="og:url" content="URL">
// Twitter: Open Graph로 대체 가능, 트위터 카드 타입만 사용해도 OK
<meta name="twitter:title" content="제목">
<meta name="twitter:description" content="설명">
<meta name="twitter:image" content="대표 이미지(URL)">
<meta name="twitter:card" content="트위터 카드 타입">
<link rel="icon" sizes="196x196" href="favicon-196.png">
<link rel="apple-touch-icon" sizes="180x180" href="favicon-180.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon.ico">
<a href="tel:0000-0000">전화하기</a>
<a href="sms:0000-0000">문자보내기</a>
<a href="mailto:메일주소">메일보내기</a>
body {-webkit-text-size-adjust:none;}
만약 Webview에서 위 CSS를 줘도 안 먹는다면, 앱 개발자에게 하단 코드요청!
//(안드로이드 기준) WebView webview = (WebView)appView.getView(); WebSettings settings = webview.getSettings(); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH) settings.setTextZoom(100);
body {outline: none; -webkit-tap-highlight-color: transparent}
var userAgent = navigator.userAgent.toLowerCase();
var devices = new Array('iphone','ipod', 'ipad','android','blackberry','windows ce','nokia','webos','opera mini','sonyericsson','opera mobi','iemobile');
for(var i=0;i<mobilePhones.length;i++){
if(uAgent.indexOf(mobilePhones[i]) != -1){
//Mobile Link Here
}
}
window.addEventListener('load', function() {
setTimeout(scrollTo, 0, 0, 1);
}, false);