粒子背景测试
作者:互联网
粒子运动背景
<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>
标签:ParticlesCom,center,color,背景,smoothing,width,测试,粒子,font 来源: https://www.cnblogs.com/dshow/p/15390621.html