|
@@ -142,7 +142,7 @@
|
|
|
<div class="text1">人口</div>
|
|
|
<div class="text2">(万)</div>
|
|
|
</div>
|
|
|
- <div class="text3">{{ analyzeData.populationSize }}</div>
|
|
|
+ <div class="text4">{{ analyzeData.populationSize }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="data-item">
|
|
@@ -152,7 +152,7 @@
|
|
|
<div class="text1">面积</div>
|
|
|
<div class="text2">(km²)</div>
|
|
|
</div>
|
|
|
- <div class="text3">{{ analyzeData.areaSize }}</div>
|
|
|
+ <div class="text5">{{ analyzeData.areaSize }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="data-item">
|
|
@@ -162,7 +162,7 @@
|
|
|
<div class="text1">GDP</div>
|
|
|
<div class="text2">(亿)</div>
|
|
|
</div>
|
|
|
- <div class="text3">{{ analyzeData.GDP }}</div>
|
|
|
+ <div class="text6">{{ analyzeData.GDP }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -608,12 +608,47 @@ initData();
|
|
|
display: flex;
|
|
|
flex: 1;
|
|
|
.item-right {
|
|
|
+ margin-left: 20px;
|
|
|
.text-box {
|
|
|
display: flex;
|
|
|
+ margin-bottom: 20px;
|
|
|
.text1 {
|
|
|
-
|
|
|
+ font-size: 32px;
|
|
|
+ color: #ffffff;
|
|
|
+ }
|
|
|
+ .text2 {
|
|
|
+ font-size: 32px;
|
|
|
+ color: #a7ccdf;
|
|
|
+ margin-left: 5px;
|
|
|
}
|
|
|
}
|
|
|
+ .text3,
|
|
|
+ .text4,
|
|
|
+ .text5,
|
|
|
+ .text6 {
|
|
|
+ font-size: 38px;
|
|
|
+ font-family: BEBAS-1;
|
|
|
+ /* 设置字体透明 */
|
|
|
+ color: transparent;
|
|
|
+ /* 使用 -webkit-background-clip 属性将背景剪裁至文本形状 */
|
|
|
+ -webkit-background-clip: text;
|
|
|
+ /* 非Webkit内核浏览器需要使用标准前缀 */
|
|
|
+ background-clip: text;
|
|
|
+ /* 把当前元素设置为行内块,以便能够应用背景 */
|
|
|
+ display: inline-block;
|
|
|
+ }
|
|
|
+ .text3 {
|
|
|
+ background-image: linear-gradient(to bottom, #ffffff 20%, #e58400 100%);
|
|
|
+ }
|
|
|
+ .text4 {
|
|
|
+ background-image: linear-gradient(to bottom, #ffffff 20%, #6fe695 100%);
|
|
|
+ }
|
|
|
+ .text5 {
|
|
|
+ background-image: linear-gradient(to bottom, #ffffff 20%, #00fde8 100%);
|
|
|
+ }
|
|
|
+ .text6 {
|
|
|
+ background-image: linear-gradient(to bottom, #ffffff 20%, #2b72d6 100%);
|
|
|
+ }
|
|
|
}
|
|
|
.icon1,
|
|
|
.icon2,
|
|
@@ -641,7 +676,7 @@ initData();
|
|
|
.title {
|
|
|
font-size: 60px;
|
|
|
position: absolute;
|
|
|
- top: 20px;
|
|
|
+ top: 30px;
|
|
|
left: 160px;
|
|
|
}
|
|
|
</style>
|