开发者

How to prevent GWT from generating inline styles?

开发者 https://www.devze.com 2023-02-03 22:38 出处:网络
When I, for example, add a SimplePanel to my page I get a div like <div style=\"position: r开发者_运维技巧elative; \" class=\"myClass\" ...

When I, for example, add a SimplePanel to my page I get a div like

<div style="position: r开发者_运维技巧elative; " class="myClass" ...

This inline style overrides my custom style defined for myClass.

How to prevent GWT from generating this inline style ? Or how to set it's content exlicitly to what i want ?


Use somePanel. getElement().getStyle().setDisplay(Style.Display.BLOCK);

0

精彩评论

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