千灵

Back

原理#

通过HTML的<meta>标签<frameset>标签的src属性刷浏览量

属性#

先来了解一下<meta>标签的属性

属性描述
charsetcharacter_set定义文档的字符编码。
contenttext定义与 http-equiv 或 name 属性相关的元信息。
http-equivcontent
default-style
refresh
把 content 属性关联到一个名称。
nameapplication-name
author
description
generator
keywords
把 content 属性关联到一个名称。
schemeformat/URIHTML5不支持。 定义用于翻译 content 属性值的格式。

应用#

我们可以使用http-equiviframe src属性进行如下应用:

content为刷新时间,请适当调整

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0">
</head>
<body>
<form>
<iframe src="http://qianling.pw/play/" width="750" height="900" frameborder="0"></iframe>
</body>
</html>
plaintext

通过 HTML 刷浏览量(PV)
https://qianling.pw/html-pv/
Author 千灵
Published at July 29, 2017
Comment seems to stuck. Try to refresh?✨