自封组件-带边框的渐变色数据卡片

发布时间:2023年12月21日

<template>
<el-row :gutter="10">
  <el-col :span="8">
    <div class="dplay_green">
      <div class="dplay_num_green">{{ jhdl }}</div>
      <div class="dplay_text_green">提示文字</div>
    </div>
  </el-col>
  <el-col :span="8">
    <div class="dplay_green">
      <div class="dplay_num_green">{{ jhdl }}</div>
      <div class="dplay_text_green">提示文字</div>
    </div>
  </el-col>
  <el-col :span="8">
    <div class="dplay_green">
      <div class="dplay_num_green">{{ jhdl }}</div>
      <div class="dplay_text_green">提示文字</div>
    </div>
  </el-col>
</el-row>
</template>

<script>
export default {
  name: 'DplayCard',
  data(){
    return{
      jhdl: 1200,
      sjfdl: 1265,
      pcdl: 65,
    }
  }
}
</script>

<style scoped>
.dplay_text_green{
  width: 60%;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #ffffff;
  font-size: 12px;
  margin: 0 20%;
  background:  linear-gradient(to right, transparent, #1DF6CE80, transparent);
}
.dplay_green{
  width: 100%;
  height: 70px;
  background: url("/img/bg/dplay_green.png");
  background-size: 100% 100%;
}
.dplay_num_green{
  width: 100%;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-weight: bolder;
  font-size: 22px;
  color: #1DF6CE;
  padding-top: 6px;
}
.dplay_text_blue{
  width: 100%;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: #ffffff;
  font-size: 12px;
}
.dplay_green{
  width: 100%;
  height: 70px;
  background: url("/img/bg/dplay_green.png");
  background-size: 100% 100%;
}
.dplay_num_blue{
  width: 100%;
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-weight: bolder;
  font-size: 22px;
  color: #50DBFF;
}
</style>

图片以及完整资源:https://download.csdn.net/download/galaxyJING/88646107?spm=1001.2014.3001.5501

文章来源:https://blog.csdn.net/galaxyJING/article/details/135086688
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。