Vue 粒子背景测试

粒子运动背景

<template>
<div class="outer">
<particles-com class="inner"/>
<div class="wd">gCode Teacher</div>
</div>
</template>
<script>
import ParticlesCom from './components/ParticlesCom.vue'
export default {
  name: 'App',
  components: {
    ParticlesCom
  }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
.outer{
  width: 400px;
  height: 400px;
  border:1px solid red;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.inner
{
  width:100%;
  height: 100%;
  color:red;
  position: absolute;
  background-color: rgb(1, 5, 17);
}
.wd{
  color:white;
  z-index: 100;
}
</style>

 

posted @ 2021-10-10 20:55  dshow  阅读(26)  评论(0编辑  收藏  举报