背景颜色
背景图片
<template>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
</template>
<style scoped>
div {
width: 800px;
height: 1000px;
border: 1px solid red;
background-image: url("../../assets/images/logo-universal.png");
}
.div1{
background-repeat: repeat-x;
}
.div2{
background-repeat: repeat-y;
}
.div3{
background-repeat: no-repeat;
}
</style>