<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Title</title>
<meta lang="utf8">
<div1>
<style>
.div1{
background-color: #1ecc86;
height:100px;
overflow: auto;
/*overflow: scroll;scroll有下拉滾動條*/
}
</style>
</div1>
</head>
<body>
<!--此時由於設置的高度有限,其余部分溢出,加入了overflow:auto,或者overflow:scroll(scroll有下拉滾動條)則會將溢出部分隱藏起來作為一個滾動條可以下拉查看-->
<div class="div1">
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<h1>star</h1>
<img src="1.jpg">
</div>
</body>
</html>