UTF-8编码网页在IE下显示空白的解决方法

| | Comments (0)



一般来说,在firefox下没有问题,ie下主要是由于ie读写网页编码个别版本可能存在问题。

这种情况是<title>和<meta>两位老大的位置坐错,微软的IE就会忽视charset=utf-8的设置,正确的应该是先<meta ...... UTF-8>然后<title>才能出场。

比如:

<title>[!--pagetitle--] - Powered by EmpireCMS
<meta http-equiv="Content-Type" content="text/html; charset=utf-8″ />
<meta content="[!--pagetitle--]" name="keywords" />
<meta content="[!--pagetitle--]" name="description" />

调整为:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8″ />
<meta content="[!--pagetitle--]" name="keywords" />
<meta content="[!--pagetitle--]" name="description" />
<title>[!--pagetitle--] - Powered by EmpireCMS

这样问题就可以解决了。

Leave a comment

Archives

Ads by google

Pages

Powered by Movable Type 4.24-en

About this Entry

This page contains a single entry by 单点日志 published on November 2, 2009 8:49 PM.

pagerank 更新了 was the previous entry in this blog.

2009年10月份西联汇款发汇人信息错误解决方法 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.