CSS样式margin:0 auto不居中
时间:2014-01-14 21:24:38
收藏:0
阅读:489
<style type="text/css">
html,body{height:100%;width:960px;}
.container{background-color:#cccccc;width:960px;height:100%;margin:0 auto;}
</style>
此情况下,container不居中,去掉html,body中的width:960px后居中
原文:http://www.cnblogs.com/jiechn/p/3513157.html
评论(0)