i have tryed backgroundColor,it have made a wong.
use the method you suggest it success.
why backgroundColor and backgroun-color both make a mistake?
is it a bug with gwt2.3?
On Nov 28, 1:29 pm, Gal Dolber gal.dol...@gmail.com wrote:
try with backgroundColor, also you don't need to use static
yes,i fond that the DOM.setStyleAttribute() method could not realize a
css attribute with the character - correctly.
it is a bug 操
On Nov 28, 4:26 pm, wahaha il...@yahoo.com.cn wrote:
i have tryed backgroundColor,it have made a wong.
use the method you suggest it success.
why backgroundColor
It's not a bug. Or at least, it's not a bug in GWT. This is the way CSS works
with javascript...whenever you set styles in javascript you must use camel
case, and in a css file you use hyphens. GWT was trying to stop you from making
a mistake by pointing out that you had a hyphen in your css
Yeah, cueman is right.
You need to use camelCase ing GWT. But jQuery can accept both types:
*jQuery can equally interpret the CSS and DOM formatting of multiple-word
properties. For example, jQuery understands and returns the correct value
for both .css({'background-color': '#ffe',
i write these code :
-
HorizontalPanel hp=new HorizontalPanel();
Label lbl=new Label(a);
hp.add(lbl);
try with backgroundColor, also you don't need to use static methods
hp.getElement().getStyle().setBackgroundColor(red);
On Mon, Nov 28, 2011 at 12:44 AM, wahaha il...@yahoo.com.cn wrote:
i write these code :