由于某些奇怪的原因,背景图像未在 IE 中显示。我尝试使用图像的完整路径,仅使用背景而不是背景图像,使用 png、gif、jpg,在图像路径周围使用引号和双引号。基本上尝试了网上关于 IE 中背景图像的所有建议
html, body {
margin: 0;
padding: 0;
width: 1008px;
margin: 0 auto;
font-family:"Trebuchet MS";
font-size:14px;
line-height: 190%;
text-align:left;
text-decoration: italic;
background-image: url(../images/bgr_top.jpg), url(../images/bgr_bottom.jpg);
background-repeat: repeat-x, repeat-x;
background-position:center top, center bottom;
}
我唯一的怀疑是我使用了两张图片,一张用于顶部,一张用于页面底部。还阅读了右括号后的空格,但不确定它是否相关,因为我正在使用 background-repeat: 在不同的行上。
非常欢迎任何其他建议:)