简体   繁体   中英

What is the best practice of styling GWT widgets?

As question says, how to style user widgets? Some of them are stylized in theirs xml file, but default widgets have minimal css, and require external rules to style. However, it have some disadvantages, like hard changing styling of internal widgets of other. I'm not pretty sure what is the correct and pro solution of it. Thanks.

IMHO You are best off using current best practice for styling in pure JavaScript/CSS world. CSS has got very powerful so I'm not sure the clever stuff in GWT is generally worth learning. Also we generally outsource creating the gfx/CSS so it is easier to provide a set of graphics and CSS to be sent to us as standard/normal files.

There are great and powerful things in the GWT toolkit for styling but I'm not sure, for most cases, they are worth it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM