<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<style type="text/css">
.hh{
min-height:100px;
height:auto !important;
height:100px;
width:30%;
background:#FFF000;
}
</style>
</head>
<body>
<div class="hh">
此div可以固定高度也可以随着内容的增高而自动伸展
</div>
</body>
</html>
转载于:https://www.cnblogs.com/yipeng-yu/archive/2013/03/21/2974337.html