00010.【CSS】渐变背景

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

<template>
  <div class="wrapper">
    <div class="box a"></div>
    <div class="box b"></div>
  </div>
</template>

<script setup>

</script>

<style scoped>

.box {
  width: 200px;
  height: 80px;
}

.a {
  background-image: linear-gradient(105deg, rgba(0, 249, 255, 1) 39%, rgba(51, 56, 57, 1) 96%);
}

.b {
  background-image: radial-gradient(circle, rgba(0, 249, 255, 1) 39%, rgba(51, 56, 57, 1) 96%);
  background-size: 100px 50px;
}

</style>