有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java在gwt中更改装饰选项卡栏的背景图像

如何在gwt中更改装饰选项卡栏的背景图像,或者装饰选项卡栏不接受背景图像?这是我做的css

.gwt-DecoratedTabBar {
width: 910px;
    height: 50px;
    background: #565F68 url(images/topBar.jpg) no-repeat left top;
    margin: 0px auto;
    padding: 0px;
}

我想把我所有的图像放在一个名为assets的文件夹中,而不是默认的images文件夹中 如何在css中引用该文件夹


共 (1) 个答案

  1. # 1 楼答案

    请尝试以下方法:

    .gwt{
        position: absolute;
        width: 910px;
        height: 50px;
        background: url('images/topBar.jpg') no-repeat;
        margin: 0 auto;
        padding: 0px;
    }
    

    我不太确定,您是否可以在后台指定这么多属性

    此外,您只需创建一个名为assets的文件夹,并将“image/”更改为“assets/”