定义这个东西,让他屏幕大小适应手机端####
<meta name="viewport" content="width=device-width, target-densitydpi=160dpi, initial-scale=1.0, user-scalable=no">``` #### 删除苹果默认的工具栏和菜单栏 #### ```html <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"><meta name="apple-mobile-web-app-capable" content="yes">``` ##### 设置苹果工具栏颜色 #### ```html <meta name="apple-mobile-web-app-status-bar-style" content="black">``` #### 忽略页面中的数字识别为电话,忽略email识别 #### ```html <meta name="format-detection" content="telphone=no, email=no">``` #### 启用360浏览器的极速模式(webkit) #### ```html <meta name="renderer" content="webkit">``` #### 避免IE使用兼容模式 #### ```html <meta http-equiv="X-UA-Compatible" content="IE=edge">``` ####针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓 #### ```html <meta name="HandheldFriendly" content="true">``` #### 微软的老式浏览器 #### ```html <meta name="MobileOptimized" content="320">``` ####uc强制竖屏 #### ```html <meta name="screen-orientation" content="portrait">``` ####QQ强制竖屏 #### ```html <meta name="x5-orientation" content="portrait">``` #### UC强制全屏 #### ```html <meta name="full-screen" content="yes">``` ####QQ强制全屏#### ```html <meta name="x5-fullscreen" content="true">``` ####UC应用模式 #### ```html <meta name="browsermode" content="application">``` #### QQ应用模式 #### ```html <meta name="x5-page-mode" content="app">``` ####windows phone 点击无高光 #### ```html <meta name="msapplication-tap-highlight" content="no">``` ####适应移动端end #### ```html <meta name="nightmode" content="enable/disable">``` ```html <meta name="imagemode" content="force">``` ####禁用掉uc浏览器判断到页面上文字居多时,会自动放大字体优化移动用户体验。#### ```html <meta name="wap-font-scale" content="no">``` ####WebApp全屏模式
<meta name="apple-mobile-web-app-capable" content="yes" />
####页面关键词```html <meta name="keywords" content="your tags" />```####页面描述```html <meta name="description" content="150 words" />
作者:贞贞姐
链接:https://www.jianshu.com/p/2a2ea758328a