我的网站在 IE9 上看起来不错,但在 IE8 上却不行。Davideugenepeterson 类和 id 不起作用。谁能指出问题出在哪里?这是我的CSS:
@charset "utf-8";
body
{ min-width:839px;
max-width:none;
margin-left:0;
margin-top:0;
margin-right:0;
margin-bottom:0;
background-color:#fff; }
#Container
{ margin-left:auto;
margin-right:auto;
position:relative;
overflow:auto; }
#Banner
{ position:relative;
background-color:#000;
height:37px;
width:auto;
z-index:1; }
#Theportfolioof
{
position:absolute;
text-align:center;
width:170px;
height:37px;
left:-192px;
top:9.4px;
bottom:0;
right:0px; }
.Theportfolioof
{ white-space:nowrap;
color:#888888;
text-align:center;
letter-spacing:1.3px;
text-transform:uppercase;
word-spacing:5px;
line-height:3px;
font:normal 21px "Quaver Sans";
font-weight:100;
margin-left:auto;
margin-right:auto;
overflow:visible;
z-index:1; }
#Davideugenepeterson
{ position:absolute;
text-align:center;
width:170px;
height:37px;
left:182px;
top:1px;
bottom:0px;
right:0px; }
.Davideugenepeterson
{ white-space:nowrap;
color:#FFF;
text-align:center;
letter-spacing:0.8px;
text-transform:capitalize;
word-spacing:4px;
line-height:3px;
font :normal 18px "Pacifico";
font-size:18px;
font-weight:100;
margin-left:auto;
margin-right:auto;
overflow:visible;
z-index:1; }
#Logo
{ width:117px;
height:117px;
background-image:url(images/logo.png);
background-repeat:no-repeat;
position:absolute;
left:0;
top:37px;
bottom:0;
right:0;
margin-left:auto;
margin-right:auto;
z-index:1; }
这是我的 HTML:
<body>
<div id="Container">
<div id="Banner"><div id="Theportfolioof" class="Theportfolioof">the portfolio of</div><div id="Davideugenepeterson" class="Davideugenepeterson">david eugene peterson</div></div>
<div id="Logo"></div>
</div>
</div>
</div>
</body>
这是 IE9 浏览器屏幕截图:这就是它的外观
这就是与 IE8 的不同之处。
我已经用 W3C 对其进行了验证,css 对 html 4.01 strict 有效,并且 html 也有效。有谁知道是什么问题?就好像它甚至无法识别我设置的字体。(是的,所有字体都正确安装在我的服务器上)