web前端 常用meta标签
2015-11-12 20:10
381 查看
设置编码信息
<metahttp-equiv="Content-Type" Content="text/html;Charset=utf-8" />
设置语言
<metahttp-equiv="Content-Language" Content="zh-CN" />
设置重定向
<meta http-equiv="Refresh"Content="15; Url=http://www.baidu.com" />
设置缓存时间
<meta http-equiv="Expires"Content="Web, 26 Jun 2015 18:21:57 GMT" />
不使用缓存
<meta http-equiv="Pragma"Content="No-cach" />
设置关键字
<meta name="Keywords"Content="key1,key2,..." />
设置描述信息
<meta name="Description"Content="description abc" />
设置对搜索引擎抓取
<meta name="Robots"Content="All|None|Index|Noindex|Follow|Nofollow" />
设置可视区域
<meta name="viewport"content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0" />
浏览器使用:
<!-- 国产浏览器内核选择 -->
<meta name="renderer"content="webkit|ie-comp|ie-stand">
<!-- 使用最新版的ie浏览器,或者chrome-->
<metahttp-equiv="X-UA-Compatible"content="IE=edge,chrome=1"/>
<!-- 针对手持设备优化,主要是针对一些老的不识别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 点击无高光 -->
<metaname="msapplication-tap-highlight" content="no">
<!-- 禁止转码 -->
<metahttp-equiv="Cache-Control" content="no-siteapp" />
禁止数字识自动别为电话号码
<meta name="format-detection"content="telephone=no" />
禁止识别邮箱
<meta name="format-detection"content="email=no" />
<metahttp-equiv="Content-Type" Content="text/html;Charset=utf-8" />
设置语言
<metahttp-equiv="Content-Language" Content="zh-CN" />
设置重定向
<meta http-equiv="Refresh"Content="15; Url=http://www.baidu.com" />
设置缓存时间
<meta http-equiv="Expires"Content="Web, 26 Jun 2015 18:21:57 GMT" />
不使用缓存
<meta http-equiv="Pragma"Content="No-cach" />
设置关键字
<meta name="Keywords"Content="key1,key2,..." />
设置描述信息
<meta name="Description"Content="description abc" />
设置对搜索引擎抓取
<meta name="Robots"Content="All|None|Index|Noindex|Follow|Nofollow" />
设置可视区域
<meta name="viewport"content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0" />
浏览器使用:
<!-- 国产浏览器内核选择 -->
<meta name="renderer"content="webkit|ie-comp|ie-stand">
<!-- 使用最新版的ie浏览器,或者chrome-->
<metahttp-equiv="X-UA-Compatible"content="IE=edge,chrome=1"/>
<!-- 针对手持设备优化,主要是针对一些老的不识别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 点击无高光 -->
<metaname="msapplication-tap-highlight" content="no">
<!-- 禁止转码 -->
<metahttp-equiv="Cache-Control" content="no-siteapp" />
禁止数字识自动别为电话号码
<meta name="format-detection"content="telephone=no" />
禁止识别邮箱
<meta name="format-detection"content="email=no" />
相关文章推荐
- block,inline和inline-block概念和区别
- [读书笔记]高性能JS-加载执行
- html及css复习总结
- jQuery 自动触发事件
- 2048游戏JS实战笔记1
- Js的两种post方式
- jQuery tags input 使用
- java程序员第二课 JavaScript &&css 快速入门
- 浅析JQuery中的html(),text(),val()区别
- FSWD_BootStrap
- 使用base64 加密在URL安全传递|url_safe|php
- jquery 字符串转dom对象及对该对象使用选择器查询
- poj 1274 The Perfect Stall
- jQuery tags input 使用
- jquery——九宫格大转盘抽奖
- jquery插件开发
- js 按元素向数组中最佳删除元素
- JQuery的父、子、兄弟节点查找,节点的子节点循环
- 使用 JavaScript 实现栈
- JavaScript面向对象详解