Meta http-equiv属性详解(转),metahttp-equiv
Meta http-equiv属性详解(转),metahttp-equiv
http-equiv顾名思义,相当于http的文件头作用,它可以向浏览器传回一些有用的信息,以帮助正确和精确地显示网页内容,与之对应的属性值为content,content中的内容其实就是各个参数的变量值。
引用 meat标签的http-equiv属性语法格式是:<meta http-equiv="参数" content="参数变量值"> ;其中http-equiv属性主要有以下几种参数:
1、Expires(期限)
说明:可以用于设定网页的到期时间。一旦网页过期,必须到服务器上重新传输。
用法:
- <meta http-equiv="expires" content="Wed, 20 Jun 2007 22:33:00 GMT">
注意:必须使用GMT的时间格式。
2、Pragma(cache模式)
说明:是用于设定禁止浏览器从本地机的缓存中调阅页面内容,设定后一旦离开网页就无法从Cache中再调出
用法:
- <meta http-equiv="Pragma" content="no-cache">
注意:这样设定,访问者将无法脱机浏览。
3、Refresh(刷新)
说明:自动刷新并指向新页面。
用法:
- <meta http-equiv="Refresh" content="2;URL=http://www.net.cn/">
注意:其中的2是指停留2秒钟后自动刷新到URL网址。
4、Set-Cookie(cookie设定)
说明:如果网页过期,那么存盘的cookie将被删除。
用法:
- <meta http-equiv="Set-Cookie" content="cookievalue=xxx;expires=Wednesday, 20-Jun-2007 22:33:00 GMT; path=/">
注意:必须使用GMT的时间格式。
5、Window-target(显示窗口的设定)
说明:强制页面在当前窗口以独立页面显示。
用法:
- <meta http-equiv="Window-target" content="_top">
注意:用来防止别人在框架里调用自己的页面。
6、content-Type(显示字符集的设定)
说明:设定页面使用的字符集。
用法:
- <meta http-equiv="content-Type" content="text/html; charset=gb2312">
7、Pics-label(网页等级评定)
用法:
- meta http-equiv="Pics-label" contect="">
说明:在IE的internet选项中有一项内容设置,可以防止浏览一些受限制的网站,而网站的限制级别就是通过meta属性来设置的。
8、Page_Enter、Page_Exit
设定进入页面时的特殊效果
- meta http-equiv="Page-Enter" contect="revealTrans(duration=1.0,transtion= 12)">
设定离开页面时的特殊效果
- meta http-equiv="Page-Exit" contect="revealTrans(duration=1.0,transtion= 12)">
Duration的值为网页动态过渡的时间,单位为秒。
Transition是过渡方式,它的值为0到23,分别对应24种过渡方式。如下表:
0 盒状收缩 1 盒状放射
2 圆形收缩 3 圆形放射
4 由下往上 5 由上往下
6 从左至右 7 从右至左
8 垂直百叶窗 9 水平百叶窗
10 水平格状百叶窗 11垂直格状百叶窗
12 随意溶解 13从左右两端向中间展开
14从中间向左右两端展开 15从上下两端向中间展开
16从中间向上下两端展开 17 从右上角向左下角展开
18 从右下角向左上角展开 19 从左上角向右下角展开
20 从左下角向右上角展开 21 水平线状展开
22 垂直线状展开 23 随机产生一种过渡方式
9、清除缓存(再访问这个网站要重新下载!)
- meta http-equiv="cache-control" content="no-cache">
10、设定网页的到期时间
- meta http-equiv="expires" content="0">
11、关键字,给搜索引擎用的
- meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
12.页面描述
- meta http-equiv="description" content="This is my page">

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Since the Huawei Mate60 series went on sale last year, I personally have been using the Mate60Pro as my main phone. In nearly a year, Huawei Mate60Pro has undergone multiple OTA upgrades, and the overall experience has been significantly improved, giving people a feeling of being constantly new. For example, recently, the Huawei Mate60 series has once again received a major upgrade in imaging capabilities. The first is the new AI elimination function, which can intelligently eliminate passers-by and debris and automatically fill in the blank areas; secondly, the color accuracy and telephoto clarity of the main camera have been significantly upgraded. Considering that it is the back-to-school season, Huawei Mate60 series has also launched an autumn promotion: you can enjoy a discount of up to 800 yuan when purchasing the phone, and the starting price is as low as 4,999 yuan. Commonly used and often new products with great value

Mate30Pro has a 5G network version and a 4G network version A. Only the 5G network version is a 5G phone. Huawei Mate 30 Pro 5G version uses Kirin 990 5G chip, equipped with Balong 5000 5G baseband, supports 5G SA/NSA dual mode, 2G/3G/4G/5G full network, 5G/4G dual card standby, FDD/TDD full frequency band .

On August 29, Huawei Terminal officially announced that the Huawei Pioneer Thanksgiving Feedback Season has begun! Buy Huawei MateX5, Huawei Pocket2, Huawei novaFlip, Huawei Pura70 series, and Huawei Mate60 series immediately to enjoy purchasing privileges. However, Huawei officials did not elaborate on the specific rights and interests of the "purchase privileges". 1. Huawei Mate , limited to 10 o'clock/16 o'clock/20 o'clock, order placed every hour

According to news on July 20, blogger @digitalchat.com published an article today disclosing folding screen information from multiple manufacturers. He claimed that the next thing worth paying attention to is Huawei's three-folding mobile phone, which will be equipped with the Kirin 9 series platform and adopt dual hinge technology. Based on previous reports, the aircraft is said to be integrated with the latest AI technology and is currently progressing smoothly, with mass production scheduled for approximately the third and fourth quarters of this year. In March this year, Huawei announced a patent for a "folding screen device" with a three-fold design. The applicant is Huawei Technologies Co., Ltd. and the inventors are Huang Bo, Zha Peng, Wang Yanxin, Pang Dong, and Yu Weidong. The appearance of the device is expected to be as follows: The blogger also mentioned that the blue-green (vivo/OPPO) iteration of the foldable will be launched as soon as the first quarter of next year. The series of mobile phones will be equipped with the Snapdragon 8Gen4 platform, focusing on "extreme

The difference between Huawei Mate30 and Mate30Pro In recent years, Huawei mobile phones have gained wide recognition in the market for their powerful performance and excellent shooting capabilities. The Huawei Mate series has always been the brand's flagship product. The Mate30 and Mate30Pro mobile phones launched by Huawei in 2019 have attracted even more attention. So, what is the difference between Huawei Mate30 and Mate30Pro? First of all, there is an obvious difference in appearance. Mate30P

The screen size of mate20 is 6.53 inches, the body size is 158.2mm*77.2mm*8.3mm, and the body weight is 188 grams (including battery). Mate20 is a mobile phone product released by Huawei in London, UK on October 16, 2018. It uses a 6.53-inch water drop screen on the front, a front lens embedded in the center of the screen, and a full-screen design. The back uses a Leica three-lens and flash matrix arrangement. , inspired by the classic headlight design of supercars.

According to news on September 1, two well-known bloggers recently confirmed the new features of Huawei Mate60 series on the Bilibili platform, which attracted widespread attention in the technology community. According to them, the Huawei Mate60 series will be equipped with the Kirin 9000S processor for the first time, and this processor will have an 8-core and 12-thread configuration, becoming the first product among mobile phone processors to support hyper-threading technology. According to Geek Bay, he claimed He is the first blogger to perform hyper-threading adaptation. He confirmed the 8-core 12-thread configuration of the Kirin 9000S processor. The significance of hyper-threading technology is to enable a single processor to perform thread-level parallel computing by simulating the logical core inside a multi-threaded processor, thereby achieving more efficient multi-threaded operating systems and software compatibility. This technology is good

According to news on June 2, as Apple’s upcoming WWDC2023 Developer Conference approaches, news about Apple’s first headset Reality Pro is spreading like wildfire. Recently, Meta CEO Mark Zuckerberg took the lead in announcing a new generation of Quest3 VR headset before Cook. The headset is expected to launch this fall with a starting price of $499. It is reported that Quest3 will use a new generation of Qualcomm chips, whose GPU performance is more than twice that of the previous generation, enabling higher-performance graphics performance. With the latest "metaReality" technology, the real world and the virtual world will be better integrated. In addition, the new headset is thinner and lighter in design and will be compatible with Ques
