我在这里遇到一些小问题。我正在为所有页面使用标准容器高度和css代码。对于大多数页面,有足够的内容来填充它,有些内容可能只占页面的10-20%。那些页面使用不同的最小高度是个好主意吗?以下是代码:
#wrapper {
background-color: #999999;
margin:0 auto;
min-height: 600px;
width:770px;
font-family: "Lucida Grande", Verdana, "Lucida Sans Unicode", Arial, Helvetica,
sans-serif;
font-size:15px;
color: #222222;
margin-left:60px;
margin-bottom:60px;
}
答案 0 :(得分:3)
在单独的类中声明较小的min-height
可能更好。
然后,您可以<div id="wrapper" class="smallerContent">
。
#wrapper.smallerContent {
min-height: 300px
}