搬运自:https://www.cnblogs.com/wangyuanyuanlovexuanxuan/p/7767767.html
html:
<style> .div1{ 200px; height:100px; overflow-y:auto;//关键 }</style><div class="div1"> 内容 内容 内容 内容 内容 内容 内容 </div>