RAS-WEB/src/views/screen/R_D_Environment/index.vue

39 lines
853 B
Vue
Raw Normal View History

2024-10-30 01:19:56 +00:00
<template>
2024-11-01 09:12:14 +00:00
<div class="container">
<!-- <img id="bg-img" class="img " :src="gitBG"> -->
<ThreeBG style="position: absolute;left: 0;top: 0;" />
</div>
2024-10-30 01:19:56 +00:00
</template>
<script setup>
2024-11-01 09:12:14 +00:00
import { onMounted } from 'vue';
import gitBG from '@/assets/images/gif-bg.gif';
import ThreeBG from './component/ThreeBG.vue';
2024-10-30 01:19:56 +00:00
</script>
2024-11-01 09:12:14 +00:00
<style lang="scss" scoped>
.container {
2024-10-30 01:19:56 +00:00
width: 1920px;
height: 1080px;
2024-11-01 09:12:14 +00:00
position: relative;
display: flex;
justify-content: center;
align-items: center;
background-image: url('/src/assets/images/gif-bg.gif');
background-repeat: no-repeat;
/* 如果你不想让背景平铺 */
background-size: cover;
/* 或者其他你需要的大小设置 */
background-position: center;
.bg-img {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: -1;
}
2024-10-30 01:19:56 +00:00
}
2024-11-01 09:12:14 +00:00
</style>