0
自定义CSS样式我有以下代码GWT的按钮
Button orderButton = new Button("");
orderButton.setStyleName("OrderButton");
orderButton.getElement().getStyle().setProperty("marginTop", "35px");
的CSS看起来像这样
.OrderButton {
width:208px;
height:43px;
background-image:url('graphics/OrderButton.jpg');border:0;margin:auto;
}
.OrderButton-down {
width:208px;
height:43px;
background-image:url('graphics/OrderButton_down.jpg');border:0;margin:auto;
}
但点击按钮不会改变任何东西。样式保持不变“OrderButton”和“OrderButton-down”被忽略。
我忘了什么吗?
谢谢。工作了! – toom 2012-03-10 21:09:37