HTML 頁面自動重新整理
阿新 • • 發佈:2018-12-04
學習就是一個不斷積累的過程,每一天能夠學到一點新東西說明自己就在進步!!
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>