您的位置:首页 > WEB开发 > min-height最小高度的实现(兼容IE6、IE7、FF,Opera,非js)

min-height最小高度的实现(兼容IE6、IE7、FF,Opera,非js)

2009-6-20 14:10:04 | At WEB开发 | Comments 1 | View 301

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>min-height最小高度的实现(兼容IE6、IE7、FF,非js)</title>
<style type="text/css">
<!--
#content {
background:#390;
min-height:100px;
height:auto;
_height:100px;
overflow:hidden;
_overflow:visible;
}
-->
</style>
</head>

<body>
<div id="content">
内容<br />
内容<br />
内容<br />
内容<br />
内容<br />
内容<br />
</div>
</body>
</html>

[由 azhi 于 2009-6-20 14:10:04 最后编辑]

近期相关评论
发表评论