2011-01-26 41 views
1

在我的GWT應用程序中,我有一些文本框。沒什麼特別的,只是IE添加一個滾動條來輸入type =「text」

<input type="text" tabindex="4" class="gwt-TextBox"> 

在IE 8我有一個奇怪的現象:如果包含文字較長的文本框,在框內顯示的水平滾動條(是的,滾動條隱藏的文本)。

在Firefox中一切都很好。這是爲什麼?任何想法?

回答

4

我找到了原因!在我的樣式表,我有以下幾點:

.dialog input[type="text"], 
.dialog input[type="password"], 
.dialog textarea { 
    overflow: auto; 
} 

這是a fix for a Firefox-Bug :-)