首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > CSS >

HTML中meta的功用(二)(转)

2012-10-08 
HTML中meta的作用(二)(转)一,页面跳转说明:10秒后,页面刷新,并跳转到http://www.lvtao.二,缓存控制meta h

HTML中meta的作用(二)(转)

一,页面跳转

说明:10秒后,页面刷新,并跳转到http://www.lvtao.

二,缓存控制
<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:缓存但不存档三,页面编码设定

说明:这个大家最熟悉了,因为乱码的问题,搞开发的基本上都遇到过

四,cookie

说明:userid=123456是要存到cookie里的数据,path是存到什么地方,expires是给cookie加上期限

五,content-disposition

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???? //引用时间这个东西,在上传文件,发送邮件附件等会用到

六,文件类型

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格式视频文件?

热点排行