liferay自定义主题在ie7中 不能居中 偏左显示
很奇怪
html{
height: 100%;
width:1000px;
margin: 0 auto;
text-align: center;
}
body {
/*background: #828F95 url(../images/weisheng/background.jpg) repeat-x;*/
width:1000px;
font : 12px Verdana, Tahoma, arial, sans-serif ,宋体;
margin: 0 auto;
text-align: center;
}
#wrapper {
width: 1000px;
color:#000000;
position : relative ;
margin: 0 auto;
}
关于居中的各种定义都加了,除ie7之外所有浏览器均居中显示。
调试了好久 最后发现了一个低能问题,血的教训啊。
html里面我定义了 width,要把html的width去掉,html的width就是自适应的。
哈哈 这个错误记忆真心深刻了。