|
输网址进行W3C验证出警告,复制源文件验证无警告
输入网址验证
http://validator.w3.org/check?uri=http%3A%2F%2Fhellowiki.com%2F
警告内容如下
Conflict between Mime Type and Document Type<br />
<br />
The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml<br />
<br />
Using a wrong media type for a certain document type may confuse the validator and other user agents with respect to the nature of the document, and you may get some erroneous validation errors. How to fix this problem? One of the following techniques should help:<br />
<br />
* If you are serving a static file on a Web server, changing its extension should help. Use e.g .xhtml for XHTML or .mathml for MathML.<br />
* You may need to reconfigure your Web server. This Setting up MIME Types tutorial has instructions for Apache, Tomcat and IIS.<br />
* If the document is generated dynamically, the scripting language should allow you to set up the mime type: this article on MIME Types and Content Negotiation has examples in PHP, Perl, and ASP.
复制代码
模板是存在数据库里的,所以不知道改怎么解决。。。
有没有人遇到类似的情况,如何解决?:confused: |
|