1. 程式人生 > >HTML 頁面自動刷新

HTML 頁面自動刷新

use content 進步 刷新 lan nim 設置 title wid

學習就是一個不斷積累的過程,每一天能夠學到一點新東西說明自己就在進步!!

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>

HTML 頁面自動刷新