问题
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