【发布时间】:2010-09-15 23:10:20
【问题描述】:
我正在尝试使用居中对齐的正文背景图像,但它在 IE 6 中不起作用。正文的 CSS 是
body{line-height: 160%;font-family: "Trebuchet MS", sans-serif; font-size: 80%;
/* background: #000a28 url('img/main_bg.png') no-repeat center top;*/
background-image:url('img/main_bg.png');
background-repeat:no-repeat;
background-attachment:scroll;
background-position:center top;
background-color: #000a28;
width: 100%;
margin: 0 auto;
color: #ffffff;
text-align: center!important}
对于 IE 6,我编写了以下 CSS
body {
text-align:center;
}
#main-wrapper {
margin:0 auto;
width:960px;
text-align:left;
}
请帮帮我。
【问题讨论】:
标签: html css internet-explorer