javascript - How to make the div become a container with scroll bar? -
this simple code:
<div id="container"> <div id = "information"> </div> </div>
when change "information" width 1000, , container width 100, "information" become long, let information div inside div...i means, want container have scroll bar, if information's width longer container. how can so? thank you.
#container { overflow: auto; }
Comments
Post a Comment