学习就是一个不断积累的过程,每一天能够学到一点新东西说明自己就在进步!!
HTML head 里面设置页面自动刷新功能
<meta http-equiv="Refresh" content="2">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
兼容Ie
页面2s自动刷新一次
代码:
<!doctype html>
<html lang="en">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><meta http-equiv="Refresh" content="2"><title>Document</title>
</head>
<body>
<h1>Hello world</h1>
</body>
</html>
更多专业前端知识,请上 【猿2048】www.mk2048.com