君语贤
时光静好,与君语;细水流年,与君同;繁华落尽,与君老...

首页>前端设计>知识整理>正文

可能用到的meta标签

2019-01-24 标签:meta标签

<!-- 设置缩放 -->

<metaname="viewport"content="width=device-width,initial-scale=1,user-scalable=no,minimal-ui"/>
<!--可隐藏地址栏,仅针对IOS的Safari(注:IOS7.0版本以后,safari上已看不到效果)-->
<metaname="apple-mobile-web-app-capable"content="yes"/>
<!--仅针对IOS的Safari顶端状态条的样式(可选default/black/black-translucent)-->
<metaname="apple-mobile-web-app-status-bar-style"content="black"/>
<!--IOS中禁用将数字识别为电话号码/忽略Android平台中对邮箱地址的识别-->
<metaname="format-detection"content="telephone=no,email=no"/>

其他meta标签

<!-- 启用360浏览器的极速模式(webkit) -->

<metaname="renderer"content="webkit">

<!-- 避免IE使用兼容模式 -->

<metahttp-equiv="X-UA-Compatible"content="IE=edge">

<!-- 针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓 -->

<metaname="HandheldFriendly"content="true">

<!-- 微软的老式浏览器 -->

<metaname="MobileOptimized"content="320">

<!-- uc强制竖屏 -->

<metaname="screen-orientation"content="portrait">

<!-- QQ强制竖屏 -->

<metaname="x5-orientation"content="portrait">

<!-- UC强制全屏 -->

<metaname="full-screen"content="yes">

<!-- QQ强制全屏 -->

<metaname="x5-fullscreen"content="true">

<!-- UC应用模式 -->

<metaname="browsermode"content="application">

<!-- QQ应用模式 -->

<metaname="x5-page-mode"content="app">

<!-- windows phone 点击无高光 -->

<metaname="msapplication-tap-highlight"content="no">


图文推荐
热门标签
文本格式化viewport代码规范前端开发Web优化渲染方案居中水平垂直容器盒子用法详解标签meta边框尺寸背景属性