IE adds a scrollbar to input type="text"
In my GWT application I have some text boxes. Nothing special, just
<input type="text" tabindex="4" class="gwt-TextBox">
In IE 8 I have a strange behaviour: If the containing text is longer that the text开发者_如何学运维 box, a horizontal scroll bar is displayed inside the box (and yes, the scroll bar hides the text).
In Firefox everything's fine. Why is that? Any idea?
I found the cause! In my stylesheet I had the following:
.dialog input[type="text"],
.dialog input[type="password"],
.dialog textarea {
overflow: auto;
}
which is a fix for a Firefox-Bug :-)
精彩评论