我检查了整个文件,包括验证和嗅探丢失或不合适的字符。
我还删除了 CSS 文件中的几行,并尝试了这个。
Internet Explorer 根本不显示 CSS,而 FF、Chrome 和 Safari 都没有问题。
有人知道 IE 中的某个设置可能已被更改,或者我可能缺少/使用了可能导致此问题的模式吗?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<meta http-equiv="content-LANGUAGE" content="EN"/>
<meta name="ROBOTS" content="ALL"/>
<meta name="revisit-after" content="14 days"/>
<meta name="resource-type" content="document"/>
<meta name="distribution" content="Global"/>
<meta name="rating" content="General"/>
<link rel="stylesheet" type="text/css" href="http://www.****************.css" />
<script .......
</head>
最佳答案
你有 2 <head>
页面上的元素:
<head>
<head profile="http://www.w3.org/2005/10/profile">
关于css - Internet Explorer 根本不显示 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6075932/