!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=gb2312" />
<title>无标题文档</title>
</head>
<body style="margin:0; padding:0;">
<div style=" width:700px; margin:0 auto;">
<div style="background-color:#0099FF; height:50px; text-align:center; line-height:50px;">Top</div>
<div style=" overflow-y:auto; max-height:300px;_height:expression((document.documentElement.clientHeight||document.body.clientHeight)<300?"300px":"");">
<div style="height:250px; margin:0px 20px; background-color:#00FF00;">里面这个DIV高度设为300以上或者以下,可看到效果</div>
</div>
<div style="background-color:#CCCCCC; height:30px; text-align:center; line-height:30px;">Bottom</div>
</div>
</body>
</html>