我正在创建一个网站,我已经创建了一个结构,但我正面临高度问题。这里是我期待网站的高度问题
,但是这是我得到
下面是CSS:
html {height:100%!important;}
body {
margin:0;
font:12px/15px "Lucida Sans Unicode", "Lucida Grande", sans-serif;
color:#8a8a8a;
min-width:1000px;
background:#fff;
min-height:100%!important;
}
#wrapper {
position:relative;
min-height:100%;
overflow:hidden;
background:url(../images/wrapper.jpeg) repeat-y;
}
#content {
float:left;
width:100%;
min-height:100%;
}
你真的希望文字占据整个区域吗?如果是这样,只需使用'height:100%;' –
我想要一个完整的长度左右部分 – Zerotoinfinity
这个我用你的一些代码做的例子应该可以帮助你一点:http://jsfiddle.net/fA4HL/3/ –