我有一個DIV,它應該在其中放置多個DIV。我如何將滾動條設置爲DIV?DIV的滾動條
<div id="container"> //need a scroller to this div
<div id="subcontainer1"></div>//created dynamically
<div id="subcontainer2"></div>//created dynamically
<div id="subcontainer3"></div>//created dynamically
more created dynamically....
</div>
給它一個固定的高度並設置'overflow:auto;' – Pete 2014-09-05 10:01:22
http://stackoverflow.com/a/2836830/1083946 – 2014-09-05 10:03:39