The scroll bar problem for Div:
Two methods:
One
<div style= "Overflow:scroll; width:400px; height:400px; " ></div>
Remember the width and height must be set Oh, otherwise not
However, when not exceeding, there will be the following scroll bar, so it is not the best choice
Two
<div style= "Overflow-y:auto; Overflow-x:auto; width:400px; height:400px; " ></div>
Remember the width and height must be set Oh, otherwise not
This is better, when the width and height is not exceeded, just a line
Third, the description
Specify the overflow property to auto for the div directly, but you must specify the height of the Div, as follows:
<div style= "Position:absolute; height:400px; Overflow:auto ">
</div>
If a horizontal scroll bar appears: Overflow-x:auto
Similarly, the vertical scroll bar is: Overflow-y:auto
If the div is contained in another object such as TD, the position can be set to relative: Position:relative
Article from: http://blog.csdn.net/lwjnumber/article/details/6319598
Goto: div: scroll bar setting for Div plus scrollbar Div