我有一个页脚DIV
<div id=footer">内部
<div id="wrapper">我把width: 100%和text-align:center设为footer.它的工作良好,铬,IE9,8和火狐。
但是在IE7中,它不起作用,我被迫使用margin来正确地对齐它。
请帮帮忙。
//这是针对CHROME,IE9,IE8,FF的
#footer .footertc {
text-align: center;
margin: 35px 0px 0px 0px;
display: block;
width: 100%;
height: 75px;
background: #F1F1EF;
padding: 0px;
font-size: 10px;
clear: both;
}
#wrapper {
background: white;
background-position: 50% 0px;
width: 984px;
margin: 0px auto 0 auto;
text-align: center;
}//这是针对IE 7->的,我被迫使用边距-左
*+html #footer .footertc {
text-align:center; -> this does not work
margin:50px 0px 0px 550px;
display:block;
width:100%; --> this does not work
height:75px;
background:#F1F1EF;
}发布于 2012-07-04 20:47:59
您可以尝试reset.css来最小化跨浏览器的css问题。更多详细信息,您可以看到这里。
https://stackoverflow.com/questions/11332334
复制相似问题