Modify Style from GWT

前端 未结 2 666
不知归路
不知归路 2021-01-04 01:45

I executed but only FF and chrome moves the textarea 0px from top and 0px from left but in IE textarea is in default position.

Here is my code:

publi         


        
2条回答
  •  难免孤独
    2021-01-04 02:28

    What about using style classes? I mean, you can write a style class like this:

    .someClass {
        position:absolute;
        top:0px;
        left:0px;
    }
    

    And then add the style class to the TextArea

    ta.addStyleName("someClass");
    

    It will help you to write a more concise code, without inline styling that could be difficult to maintain.

提交回复
热议问题