使用高度:100%,不需要最小高度见这里http://jsfiddle.net/vhZV6/5/
html{
height:100%;
}
body {
display:block;
height:100%;
margin: 0;
padding: 0;
overflow:auto;
/* just some back ground and graphical tweeks*/
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
color:#000000;
background: #86acef; /* Old browsers */
background: -moz-linear-gradient(top, #86acef 0%, #baceef 35%, #86acef 70%, #baceef 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#86acef), color-stop(35%,#baceef), color-stop(70%,#86acef), color-stop(100%,#baceef)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #86acef 0%,#baceef 35%,#86acef 70%,#baceef 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #86acef 0%,#baceef 35%,#86acef 70%,#baceef 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #86acef 0%,#baceef 35%,#86acef 70%,#baceef 100%); /* IE10+ */
background: linear-gradient(to bottom, #86acef 0%,#baceef 35%,#86acef 70%,#baceef 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#86acef', endColorstr='#baceef',GradientType=0 ); /* IE6-9 */
}
/* ~~this fixed width container surrounds the other divs~~ */
.container {
height: 100%;
container:overflow;
display:block;
position:relative;
width: 1000px;
background: #FFF url(../img/Graphic/bg.jpg) no-repeat fixed center;
background-size:100% 100%;
background-position:center;
margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
}
.header {
position:relative;
/* header graphical tweeks */
background: #2945c4; /* Old browsers */
background: -moz-linear-gradient(top, #2945c4 0%, #7db9e8 35%, #2945c4 70%, #7db9e8 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2945c4), color-stop(35%,#7db9e8), color-stop(70%,#2945c4), color-stop(100%,#7db9e8)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #2945c4 0%,#7db9e8 35%,#2945c4 70%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #2945c4 0%,#7db9e8 35%,#2945c4 70%,#7db9e8 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #2945c4 0%,#7db9e8 35%,#2945c4 70%,#7db9e8 100%); /* IE10+ */
background: linear-gradient(to bottom, #2945c4 0%,#7db9e8 35%,#2945c4 70%,#7db9e8 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2945c4', endColorstr='#7db9e8',GradientType=0 ); /* IE6-9 */
}
.sidebar1 {
position:relative;
float: left;
width: 180px;
height:100%;
}
.content {
position:relative;
padding: 10px 0;
width: 780px;
float: left;
height:100%;
background: #FFF;
background-size:100% 100%;
background-position:center;
}