1
Surpriseplus
2022-09-16 8d1a91c23df335b090e38b2edd15203aa3b03da9
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<template>
  <div class="population">
    <div class="title">
      <span>人口详情</span>
      <img src="../../../assets/img/zonlan (9).png" alt="" />
    </div>
    <div class="detail">
      <img src="../../../assets/img/zonlan (32).png" alt="" />
      <div class="data1">
        <span>87627人</span>
        <p>户籍人口</p>
      </div>
      <div class="data2">
        <span>87627人</span>
        <p>户籍人口</p>
      </div>
      <div class="data3">
        <span>87627人</span>
        <p>户籍人口</p>
      </div>
      <div class="data4">
        <span>87627人</span>
        <p>户籍人口</p>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {};
  },
  //方法集合
  methods: {},
  created() {},
};
</script>
<style lang="less" scoped>
//@import url(); 引入公共css类
.population {
  overflow: hidden;
  width: 100%;
  height: calc(33.33vh + 80px);
  box-sizing: border-box;
 
  .title {
    width: 100%;
    position: relative;
    img {
      width: 100%;
    }
    span {
      font-size: 78px;
      font-weight: 400;
      color: #ffe86b;
      background: linear-gradient(0deg, #bce7ff 0%, #69efff 98.6572265625%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
    }
  }
  .detail {
    color: #fff;
    position: relative;
    img {
      display: block;
      margin: 0 auto;
      width: 75%;
    }
    .data1 {
      position: absolute;
      top: 26%;
      left: 0;
      font-size: 66px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #ffffff;
    }
    .data2 {
      position: absolute;
      top: 21%;
      right: 0%;
      font-size: 66px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #ffffff;
    }
    .data3 {
      position: absolute;
      bottom: 2%;
      left: 6%;
      font-size: 66px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #ffffff;
    }
    .data4 {
      position: absolute;
      bottom: 4%;
      right: 6%;
      font-size: 66px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #ffffff;
    }
  }
}
 
@media only screen and (max-width: 2560px) {
  .population {
    overflow: visible;
    .detail {
      .data1 {
        top: 28%;
        left: 6%;
      }
      .data2 {
        top: 25%;
        right: 6%;
      }
      .data3 {
        bottom: 9%;
        left: 13%;
      }
      .data4 {
        bottom: 11%;
        right: 13%;
      }
    }
  }
}
</style>