我執行,但只有FF和鉻從左上角和0px的textarea 0px移動,但在IE textarea處於默認位置。從GWT修改樣式
這裏是我的代碼:
public class MyGWT implements EntryPoint {
TextArea ta= TextArea.wrap(DOM.getElementById("t"));
public void onModuleLoad() {
ta.getElement().setAttribute("style", "position:absolute;top:0px;left:0px;");
}
}
有任何錯誤或如何以編程從GWT更改樣式屬性?
+1通過詢問Google獲得此點的答案:'gwt樣式屬性未設置爲ie' :) – jensgram 2011-09-16 09:05:09