【发布时间】:2022-07-06 18:39:33
【问题描述】:
我写了这段代码,我有绝对位置的背景图像,当我运行代码时,这个组件和其他组件之间有重叠,我不知道为什么,有什么帮助吗?
<template>
<v-container>
<div >
<v-row justify="center" no-gutters>
<p class="title-steps pb-4">{{ title }}</p>
</v-row>
</div>
<div justify="center" no-gutters >
<v-row class="background-ligne">
</v-row>
</div>
</v-container>
</template>
<script>
export default {
data: () => ({
title: "Start saving in 4 easy steps",
}),
};
</script>
<style scoped>
.title-steps {
font-size: 45px;
font-family: "Nunito" !important;
color: rgb(130, 8, 187);
}
.background-ligne{
background-image: url(../assets/Steps-background.svg);
position:absolute;
height: 20%;
width: 100%;
}
</style>```
【问题讨论】:
标签: javascript css vue.js frontend web-deployment