我正在构建html 5网站,并且它在Chrome和Firefox中正常工作。当我在IE 9中启动它时,除了我的背景图像以外,其他所有内容都不会超出网站的高度。我的身体css是在下面,这控制着背景图像及其高度和宽度。在IE 9中无法正确显示背景图像
#faq_page {
margin: 0 auto;
width: 1024px;
height: 100%;
padding-top: 0 auto;
background: #9c182f url(../images/faqimage.jpg) no-repeat center;
background-size: 1350px 1700px;
margin-top: auto;
}
http://stackoverflow.com/questions/6776580/css -3-background-size-not-working-on-ie9 – tbleckert 2013-05-01 16:53:18
试过了,图像并不居中,只要我添加中心图像和bg颜色消失 – Silentbob 2013-05-01 17:27:24