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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -