<div> overflow:auto does not show scrollbar until resize
问题 I have a element on my form that looks like this: <div style="overflow-y:auto;overflow-x:hidden;height:100%;width:100%"> In IE7 when the page first renders, there are no scrollbars. However, if I resize the page (even just 1 pixel) the scroll bars appear properly. Is there something I can do so that the scrollbars show properly when the page first displays? 回答1: Set overflow-y to "scroll" if you always want a scrollbar. 回答2: That's the kind of problem which comes from the hasLayout bug in IE6