电脑技术学习

html5手机网站需要加的那些meta/link标签,html5 meta全解

dn001

8、Windows 8

<meta name="msapplication-TileColor" content="#000"/> Windows 8 磁贴颜色
<meta name="msapplication-TileImage" content="icon.png"/>Windows 8 磁贴图标

9、不常用的

<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss.xml" />添加 RSS 订阅
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />添加 favicon icon
<meta name="format-detection" content="telephone=no" />禁止数字识自动别为电话号码
<meta name="format-detection" content="email=no" />不让android识别邮箱
<meta name="renderer" content="webkit">启用360浏览器的极速模式(webkit)
<meta http-equiv="X-UA-Compatible" content="IE=edge">避免IE使用兼容模式
<meta name="HandheldFriendly" content="true">针对手持设备优化,主要是针对一些老的不识别viewport的浏览器,比如黑莓
<meta name="MobileOptimized" content="320">微软的老式浏览器
<meta name="x5-orientation" content="portrait">QQ强制竖屏
<meta name="full-screen" content="yes">UC强制全屏
<meta name="x5-fullscreen" content="true">QQ强制全屏
<meta name="browsermode" content="application">UC应用模式
<meta name="x5-page-mode" content="app">QQ应用模式
<meta http-equiv="Cache-Control" content="no-siteapp" />禁止百度转码
<meta name="msapplication-tap-highlight" content="no">windows phone 点击无高光
<meta name="keywords" content="" />  关键字
<meta name="description" content="" />  描述
<meta name="title" content="" />  标题
<meta name="author" content="-06" />  作者
<meta name="Copyright" content="" />  公司
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">   让IE浏览器用最高级内核渲染页面 还有用 Chrome 框架的页面用webkit 内核
<meta name="apple-mobile-web-app-capable" content="yes">  IOS6全屏
<meta name="mobile-web-app-capable" content="yes">  Chrome高版本全屏
<meta name="renderer" content="webkit">  让360双核浏览器用webkit内核渲染页面
<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL"> 添加智能 App 广告条 Smart App Banner(iOS 6+ Safari)

10、sns 社交标签

参考微博API

<meta property="og:type" content="类型" />
<meta property="og:url" content="URL地址" />
<meta property="og:title" content="标题" />
<meta property="og:image" content="图片" />
<meta property="og:description" content="描述" />

标签: