Below is my code:
public interface Resources extends ClientBundle
{
@NotStrict
@Source("Global.css")
CssResource css();
}
@Override
public void onModuleLoad()
{
Resources resources = injector.getResources();
resources.css().ensureInjected();
....
}
//Global.css
.rule1{
background:url(images/img1.png);
}
If referring images like,as you can see in rule1,
"background:url(images/img1.png);"(images directory is under war
directory),"img1.png" can't be loaded properly in dev mode,but it got
loaded in web mode.So Question are: 1, how to use image in this
Global.css? 2,Is it possible to use image sprites here?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment