0

问题是我无法找出对齐问题任何人都可以找出问题的原因

html {
min-height: 20%;
max-height: 80%;
max-width: 80%;
background-size: cover;
background-image: url();
background-repeat: no-repeat;
background-position: center top;
}

body {
min-height:80%;
width: 800px;
max-width: 90%;
margin-top:550px;
font-size: 30px;

我的代码 css 在上面,下面是我的站点链接 http://design3web.in/test1/

4

1 回答 1

0

取决于你想要达到的目标。要使页面居中,请使用body { margin:auto; }max-width: 80%;从 html中删除

于 2012-10-24T16:58:51.947 回答