对于定义了高度的DIV容器
div {
width:200px;
height:200px;
border:1px solid red
}
标准浏览器中固定高度值的容器是不会象IE6里那样被撑开的,那我又想固定高度,又想能被撑开需要怎样设置呢?办法就是去掉height设置min-height:200px; 这里为了照顾不认识min-height的IE6 可以这样定义:
div{
height:auto!important;
height:200px;
min-height:200px;
}
div {
标准浏览器中固定高度值的容器是不会象IE6里那样被撑开的,那我又想固定高度,又想能被撑开需要怎样设置呢?办法就是去掉height设置min-height:200px;
div{
height:auto!important;
height:200px;
min-height:200px;
}