0

我的 html 文件如下所示,网站是越南语,所以我使用 utf-8 进行编码。
但是当我在Chrome中查看文件时,在body标签下,有一个巨大的空块“”,所有的元标签也在body中。
我不明白为什么我将所有元标签都写在 head 标签中,但它们出现在 body 标签中......

与 utf-8 编码有什么关系。什么是巨大的块?有人可以帮助我吗?谢谢!!!

<head>  
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />        
    <meta name="description" content="something ...." />
    <meta name="keywords" content="something... />

    <link href="tablestyle.css" type="text/css" rel="stylesheet" />
    <link href="hinhanh.css" type="text/css" rel="stylesheet" />
    <link href="index.css" type="text/css" rel="stylesheet" />

    <title>mypage.com</title>
</head>

<body>
         Content here


    </body>

4

1 回答 1

1

这是因为您的代码文件的编码。使用记事本++将文件的编码设置为“UTF-8 without BOM”...

于 2012-05-16T00:39:07.383 回答