On 3 avr, 15:52, 秦锋 <[email protected]> wrote:
> In 1.6.2, I have tried inject my css in gwt.xml, and it works!
> Does it mean I lost all standard.css style?
I don't understand...
> And could you give an example about "The other possibility (untested)
> is to inherit the xxxResources module
> (e.g. ChromeResources) instead and include the appropriate <link
> rel=stylesheet> in your HTML *before* your "overrides" (the
> xxxResources module takes care of including the stylesheet and images
> in the compilation output, without injecting the stylesheet in the
> page)
> "?
In your gwt.xml, replace:
<inherits name="com.google.gwt.user.theme.standard.Standard" />
with
<inherits name="com.google.gwt.user.theme.standard.StandardResources" /
>
Doing this, the standard.css won't be injected (so it won't override
your own style, as you originally reported). This means you have to
load the standard.css explicitly, e.g. in your HTML page:
<link rel="stylesheet" href="gwt/standard/standard.css">
followed by either (or both):
<link rel="stylesheet" href="mystylesheet.css">
or
<style>
/* your style rules here */
</style>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---