scroll 滚动条设置

   
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="utf-8" />
<meta name="robots" content="all" />
<meta name="author" content="Tencent-ISRD" />
<meta name="Copyright" content="Tencent" />
<title>overflow</title>
</head>
<body>
<style type="text/css">
  .test_demo {overflow: scroll; height: 120px; 120px; background:#CCCCCC;color:grren;}
</style>
<div class="test_demo">
  总是显示滚动条, 主要是 overflow 属性
</div>
</body>
</html>
 

原文地址:https://www.cnblogs.com/rick168/p/3096928.html