头部 meta 设置

来源:互联网 发布:linux 安全扫描工具 编辑:程序博客网 时间:2024/05/18 02:08
<!-- 启用360浏览器的极速模式(webkit) -->
<meta name="renderer" content="webkit">


<!-- 避免IE使用兼容模式 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">


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


<!-- 微软的老式浏览器 -->
<meta name="MobileOptimized" content="320">


<!-- uc强制竖屏 -->
<meta name="screen-orientation" content="portrait">


<!-- QQ强制竖屏 -->
<meta name="x5-orientation" content="portrait">


<!-- UC强制全屏 -->
<meta name="full-screen" content="yes">


<!-- QQ强制全屏 -->
<meta name="x5-fullscreen" content="true">


<!-- UC应用模式 -->
<meta name="browsermode" content="application">


<!-- QQ应用模式 -->
<meta name="x5-page-mode" content="app">


<!-- windows phone 点击无高光 -->
<meta name="msapplication-tap-highlight" content="no">


<!-- 禁止数字识自动别为电话号码 -->
<meta name="format-detection" content="telephone=no" />


<!-- 禁止识别邮箱 -->
<meta name="format-detection" content="email=no" /> 


< link  rel= "apple-touch-icon"  sizes= "76x76"  href= "touch-icon-ipad.png">
如果 apple-mobile-web-app-capable 设置为 yes 了,
那么在苹果机的safari上可以通过添加到主屏按钮将网站添加到主屏幕上。

而设置相应 apple-touch-icon 标签,则添加到主屏上的图标就会使用我们指定的图片。



0 0
原创粉丝点击