移动端应用 专用 新手必看
生活随笔
收集整理的這篇文章主要介紹了
移动端应用 专用 新手必看
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"><meta charset="UTF-8"><!--避免IE使用兼容模式--><meta http-equiv="X-UA-Compatible" content="IE=edge" /><!--優(yōu)先使用 IE 最新版本和 Chrome:--><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><!--WebApp全屏模式 隱藏地址欄。--><meta name="apple-mobile-web-app-capable" content="yes" /><!--禁止百度轉(zhuǎn)碼顯示。--><meta http-equiv="Cache-Control" content="no-siteapp"><!--忽略頁面中的數(shù)字識(shí)別為電話,忽略email識(shí)別:--><meta name="format-detection" content="telphone=no, email=no" /><title>title</title><link rel="stylesheet" href="reset.css"><!--設(shè)置rem--><script type="text/javascript">(function(doc, win) {var docEl = doc.documentElement,// orientationchange 事件是在用戶水平或者垂直翻轉(zhuǎn)設(shè)備(即方向發(fā)生變化)時(shí)觸發(fā)的事件。// onresize 事件會(huì)在窗口或框架被調(diào)整大小時(shí)發(fā)生。resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',recalc = function() {window.clientWidth = docEl.clientWidth;if (!window.clientWidth) return;docEl.style.fontSize = 50 * (window.clientWidth / 375) + 'px';window.base = 50 * (window.clientWidth / 375);};if (!doc.addEventListener) return;win.addEventListener(resizeEvt, recalc, false);doc.addEventListener('DOMContentLoaded', recalc, false);})(document, window);</script>
總結(jié)
以上是生活随笔為你收集整理的移动端应用 专用 新手必看的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Net::OICQ 还可以登录qq
- 下一篇: 计划任务以及日志管理