警告:在有人将其标记为 this 的副本之前,请理解它不是。接受的答案正是我正在做的,但我面临以下问题。
客户端文件夹中的 HTML 文件如下所示:
<head>
<meta charset="utf-8"/>
<title>blah-blah</title>
---
我在萤火虫控制台中收到的消息是:
The character encoding declaration of the HTML document
was not found when prescanning the first 1024 bytes of
the file. When viewed in a differently-configured browser,
this page will reload automatically. The encoding
declaration needs to be moved to be within the first
1024 bytes of the file.
当我在 head 和 meta charset 元素之间查看源代码时,我会看到一大堆链接样式表和脚本标签。
如果我删除元字符集,我会在萤火虫控制台中得到这个:
The character encoding of the HTML document was not
declared. The document will render with garbled text
in some browser configurations if the document
contains characters from outside the US-ASCII range.
The character encoding of the page must to be declared
in the document or in the transfer protocol.
如何让元字符集标签出现在头部之后?