开发者

Absolute positioning of a GWT TextArea in IE?

开发者 https://www.devze.com 2023-01-03 21:52 出处:网络
TextArea textarea1 = TextArea.wrap(DOM.getElementById(\"t\")); In onModuleLoad() I wrote 2 lines given below:
TextArea textarea1 = TextArea.wrap(DOM.getElementById("t"));

In onModuleLoad() I wrote 2 lines given below:

textAreaStyle = "position:absolute;top:0px;";

textarea1.getElement().setAttribute("style", textAreaStyle);

In Firefox开发者_运维百科 and Chrome, the textarea is placed in absolute position and 0px from top, but in IE the textarea remains at its default position.

Is there a bug in my code?

0

精彩评论

暂无评论...
验证码 换一张
取 消