div显示滚动条
让div显示滚动条的两个条件:
1、设置div的高度和宽度
2、设置样式overflow:auto,当然也可以选择是x或者是y轴显示滚动条
?
<div style="width:100px;width:100px;overflow:auto">aaaa<br>aaaa<br>aaaa<br>aaaa<br>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<br>aaaa<br>aaaa<br>aaaa<br>aaaa<br>aaaa<br>aaaa<br>aaaa<br>aaaa<br></div>
?