一,页面跳转
<meta http-equiv="refresh" content="10; ,URL=http://www.lvtao.net">
说明:10秒后,页面刷新,并跳转到http://www.lvtao.
二,缓存控制
<meta http-equiv="Cache-control" content="public">
<meta http-equiv="Cache-control" content="private">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache-control" content="no-store">
<meta http-equiv="pragma" content="no-cache">
说明:
???? public:可以被缓存在公众共享缓存
???? private:只可以被缓存在私人缓存里面
???? no-cache:不缓存
???? no-store:缓存但不存档三,页面编码设定
<meta http-equiv="Content-Type" content="text/html; charset=utf8 ">
说明:这个大家最熟悉了,因为乱码的问题,搞开发的基本上都遇到过
四,cookie
<meta http-equiv="Set-Cookie" content="userid=123456; path=/tmp/cookies; expires=Thursday, 20-May-09 00:15:00 GMT">
说明:userid=123456是要存到cookie里的数据,path是存到什么地方,expires是给cookie加上期限
五,content-disposition
<meta name="content-disposition" content="inline; filename=openinexcel.csv">
content参数:
???? filename 例子:"filename" "=" value??????????????????????????????//文件名
???? creation-date 例子:":= "creation-date" "=" quoted-date-time???? //创建时间
???? modification-date 例子:":= "modification-date" "=" quoted-date-time?????? //修改时间
???? read-date 例子:" := "read-date" "=" quoted-date-time????????????//读取时间
???? size 例子:":= "size" "=" 1-number?????????????????????????????? //文件大小
???? quoted-date-time 例子:" := quoted-string conform the RFC822???? //引用时间这个东西,在上传文件,发送邮件附件等会用到
六,文件类型
<meta http-equiv="Content-Script-Type" content="text/javascript">
content参数:
???? text/plain??????????????????????//文本文件
???? text/html?????????????????????? //html文件
???? application/binary??????????????//二进制文件
???? application/postscripts???????? //不知道
???? image/gif?????????????????????? //gif图片
???? image/xbm?????????????????????? //xbm图片
???? image/jpeg??????????????????????//jpeg图片
???? audio/basic???????????????????? //basic格式视频文件
???? video/mpeg??????????????????????//mpeg格式视频文件
???? video/QuickTime???????????????? //QuickTime格式视频文件?
详细解决方案
HTML中meta的功用(二)(转)
热度:95 发布时间:2012-10-08 19:54:56.0
相关解决方案
- 访问Tomcat的url的时候如何自动调用index.html
- The requested resource (/webtest/servlet/hello.html) is not availabl 帮忙解决解决方法
- JSP 页面乱码 页面起首已设置 contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"
- html js不运行有关问题
- 办公自动化系统——议程管理(用jsp+servlet+js+html+jdbc)怎样实现
- <html:text>property的有关问题
- 关于<html:text>相关的有关问题
- Struts 1.2 html:form的action和form的action区别,还有如果2个都有执行哪个解决方案
- 简单计算器(html+js),该怎么解决
- jboss4.2分布式事务出错:Could not enlist in transaction on entering meta-aware object!该怎么处理
- 修改<meta>标签的内容解决思路
- HTML 小疑点,哪位高手解决 给哪位高手分
- 嵌入JSP中的CSS显示效果和在 HTML 中的不一样.为什么.该怎么解决
- struts1 中<html:checkbox>标签的value值怎么动态赋值
- 新人求问,J2EE方向,html,css,javascript,vml要学到什么程度?解决思路
- :前台和后台开发有啥区别?还有css、html、ajax、js、jquery都有什么区别
- struts <html:file> 怎么让前面的框消失,先谢过了
- java io 读取 META-INF 文件夹失误,何解
- =Html.TextAreaFor的文本区域大小如何设置
- 正则表达式 提取 html 标签的内容,该如何解决
- @Html.CkEditor,该怎么处理
- string msg = (string)html.ViewData["Message"];该如何处理
- html password editbox 编码有关问题
- @Html.TextBoxFor(a => a.Title 上边有红线,说异常
- 关于伪静态,怎么配置.html
- MVC中,Html.DropDownListFor怎么绑定数据
- 为何FCKeditor会在自动生成<html>标签呢
- MVC 中得 Html.ActionLink 怎么linkText显示图片标记
- <DOCTYPE html. 这个是有什么用?该如何处理
- asp.net C# 将网页变换为.html 格式