1 回答

TA貢獻(xiàn)1810條經(jīng)驗(yàn) 獲得超4個(gè)贊
您需要兩個(gè)單獨(dú)的<meta />
元素。
<meta />
元素只能采用四種不同形式中的一種:
<meta charset="utf-8" />
<meta http-equiv="{HTTP Header Name}" content="{Header Value}" />
<meta name="{Metadata Name}" content="{Arbitrary Value}" />
<meta itemprop="{Custom Metadata Name}" content="{Arbitrary Value}" />
就您而言,您需要兩個(gè)單獨(dú)的<meta />
元素(盡管這是一個(gè)好主意也有 <meta charset />
)。:
<head>
<title>Page title goes here</title>
<meta http-equiv="refresh" content="0.2" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
- 1 回答
- 0 關(guān)注
- 144 瀏覽
添加回答
舉報(bào)