gpt4 book ai didi

meteor - 元标记不在前 1024 个字节中

转载 作者:行者123 更新时间:2023-12-04 11:56:03 25 4
gpt4 key购买 nike

警告:在有人将其标记为 this 的副本之前,请理解并非如此。接受的答案正是我正在做的,但我面临以下问题。

客户端文件夹中的 HTML 文件如下所示:

<head>
<meta charset="utf-8"/>
<title>blah-blah</title>
---

我在 Firebug 控制台中收到的消息是:
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.

当我查看源代码时,在头部和元字符集元素之间,我看到一大堆链接样式表和脚本标签。

如果我删除元字符集,我会在 Firebug 控制台中得到这个:
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.

如何让元字符集标 checkout 现在头部之后?

最佳答案

我所做的是编辑 /usr/lib/meteor/app/lib/app.html.in ,并添加元字符集行,使文件现在看起来像这样:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/> //**Added this line**
{{#each stylesheets}} <link rel="stylesheet" href="{{this}}">
{{/each}}
...

当然,我从我的 html 文件中删除了元字符集行。

我认为现在,这将是要走的路,这将在 future 的修订中得到解决。

关于meteor - 元标记不在前 1024 个字节中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12244233/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com