警告:之前有人去,并标志着这是重复此,请大家明白,它不是.接受的答案正是我正在做的,但我面临以下问题.
客户端文件夹中的HTML文件如下所示:
<head>
<meta charset="utf-8"/>
<title>blah-blah</title>
---
Run Code Online (Sandbox Code Playgroud)
我在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.
Run Code Online (Sandbox Code Playgroud)
当我在头部和元字符集元素之间执行视图源时,我看到了一大堆链接样式表和脚本标记.
如果我删除元字符集,我在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.
Run Code Online (Sandbox Code Playgroud)
如何让meta charset标签出现在头部后面?
我做的是编辑/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}}
...
Run Code Online (Sandbox Code Playgroud)
当然,我从我的html文件中删除了元字符串行.
我想现在,这将是要走的路,这将在未来的修订中得到解决.
| 归档时间: |
|
| 查看次数: |
4014 次 |
| 最近记录: |