<style lang="scss" scoped>
// 引入全局样式 index
@import '@/styles/index';
.not-login {
height: 180px;
// ~@ 代表src 文件
background: url("~@/assets/banner.png") no-repeat;
background-size: cover;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
</style>
vue css样式 引入背景图写法
最新推荐文章于 2024-02-21 16:32:01 发布