Html 背景图像未在IE6中居中

Html 背景图像未在IE6中居中,html,css,internet-explorer,Html,Css,Internet Explorer,我试图使用一个身体背景图像,这是中心对齐,但它不工作在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-re

我试图使用一个身体背景图像,这是中心对齐,但它不工作在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}
对于IE6,我编写了以下CSS

body {
  text-align:center;
}

#main-wrapper {
  margin:0 auto;
  width:960px;
  text-align:left;
}

请帮帮我。

试试我的代码而不是你身体的属性

body{
background:url('img/main_bg.png') #000a28 no-repeat center top;
color: #ffffff;
font-family: "Trebuchet MS", sans-serif; 
font-size: 80%;
line-height: 160%;
text-align: center;
}

它不起作用的原因是您正在使用的SuperSlight透明png脚本。由于脚本仅在加载所有内容后运行,因此在脚本运行时,背景首先居中,然后跳回左侧。据我所知,
AlphaImageLoader
不允许更改背景位置


请尝试改用此脚本:。它使用不同的解决方案,应考虑使用背景位置

不,它仍然不工作,当重新加载它时,显示图像在中间,但当页面加载回左对齐时。