【发布时间】:2012-10-30 01:38:25
【问题描述】:
我正在尝试使用图像作为按钮的背景。 我将图像定义为客户端包中的资源。
public interface MyResources extends ClientBundle {
@Source("image/hborder.png")
ImageResource hBorder();
}
在 css 文件中,我尝试使用以下代码引用此图像
.gwt-Button {
margin: 0;
padding: 3px 5px;
text-decoration: none;
font-size: small;
cursor: pointer;
cursor: hand;
gwt-image:'hBorder' ;
background: repeat-x 0px -27px;
border: 1px outset #ccc;
}
但是图片没有显示。我应该改变什么??
问题出在哪里..?
谢谢
凯瑟尔
【问题讨论】:
标签: css image gwt background clientbundle