2023西安数博会CIM演示-【前端】-Web
AdaKing88
2023-08-21 bc03b832caa49bbcd2674fe4cae3701b5059bf95
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<template>
  <div class="scoreContainer">
    <div class="under">
      <div class="imgBox pan">
        <img src="./score.png" alt="" />
      </div>
      <i class="imgBox arrow"><img src="./arrow.png" alt="" /></i>
    </div>
    <div class="score tc"><span>98</span><em>分</em></div>
  </div>
</template>
 
<script>
export default {
  name: "score",
  components: {},
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>
 
<style lang="scss" scoped>
.scoreContainer {
  height: 100%;
  position: relative;
 
  .score {
    position: absolute;
    width: 100%;
    top: 40px;
    height: 60px;
    line-height: 60px;
 
    span {
      background-image: -webkit-linear-gradient(100deg, #00c6ff, #ffffff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      font-size: 60px;
      font-family: DIN;
      vertical-align: baseline;
    }
 
    em {
      color: #00c6ff;
      margin-left: 10px;
      vertical-align: baseline;
    }
  }
 
  .under {
    position: absolute;
    width: 90%;
    transform: translateX(-50%);
    left: 50%;
    top: 90px;
 
    .pan {
      position: absolute;
      width: 110%;
      transform: translateX(-50%);
      left: 50%;
    }
 
    .arrow {
      position: absolute;
      width: 9px;
      height: 8px;
      transform: translateX(-50%);
      left: 98%;
      top: 42px;
    }
  }
}
</style>