自封组件-带边框的渐变色数据卡片
2023-12-21 13:53:09
<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
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!