Vaadin valo background image

岁酱吖の 提交于 2019-12-12 06:49:10

问题


mytheme.scss file:

@import "../valo/valo.scss";

@mixin mytheme {

 @include valo;  
 background-image: url("img/light-background.jpg");
  }

my image is in ...VAADIN/themes/mytheme/img/light-background.jpg

where is no compiling/running errors, why image isn't displayed as a background?


回答1:


Edit: On hold until additional details are provided.

Try setting it as the background image for your UI's generated div:

@mixin mytheme {
  @include valo;

  .v-ui {
     background-image: url("img/light-background.jpg");
  }
}



来源:https://stackoverflow.com/questions/36352430/vaadin-valo-background-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!