复制代码
代码如下:<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>设置div最小高度及高度自动伸展的实例</title>
<style>
.divHeight{height:400px;height:auto;min-height:500px;width:800px; background:#bbeeeb;margin:0 auto;}
</style>
</head>
<body>
<div class="divHeight">
此div具有最小高度且高度可以随着内容的增高而自动伸展
</div>
</body>
</html>
注:资源为互联网收集,仅供学习与参考,请勿用于商业用途,如有疑问请联系人工客服QQ:9616463