學習就是一個不斷積累的過程,每一天能夠學到一點新東西說明自己就在進步!!
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>