overflow-y: hidden设置垂直溢出隐藏。
overflow-x: hidden 设置水平溢出隐藏
如果CSS设置块的溢出方向,在不设置的情况下,都是右边溢出,或者下边溢出.设定溢出方向可以用float,position:absolute这类脱离文档流的方式。
float:left,float:right, postion:absolute后设置left/top/bottom/right,的一项为0;
div#contents {width:190px
_height:200px
min-height:200px
background-color:green
margin:1px auto
position:relative
top: 0
left: 0
这个就是最小高度自动伸缩的,两行代码是适应IE和FF内核的,希望可以帮到你!