<script lang="ts" setup> const emit = defineEmits(['bak']) </script> <template> <div class="container"> <div class="bg" /> <div> <el-button class="bak" type="primary" @click="emit('bak')"> 返回 </el-button> </div> <div class="content"> <div class="card-box u-f-ajsb"> <div class="card backgroundImg"> <div class="title" style="color: rgb(255 255 255);"> 总CO₂e排放 </div> <img src="../../../assets/images/co.png" class="tu-1"> </div> </div> </div> </div> </template> <style lang="scss" scoped> .bg { height: 160px; background-image: url("../../../assets/images/result-bg.png"); } .bak { position: absolute; top: 30px; left: 10%; } .content { width: 80%; background: #fff; margin: 0 auto; min-height: 100vh; margin-top: -85px; border-radius: 8px; .card-box { padding: 46px 35px; } .u-f-ajsb { display: flex; align-items: center; justify-content: space-between; } .card { overflow: hidden; position: relative; padding: 4rem 3rem 4rem 2.5rem; width: 28%; height: 14rem; border: 1px solid #fff; border-radius: 6px; .title { font-size: 16px; font-family: "Source Han Sans SC"; font-weight: 400; margin-bottom: 0.5rem; } .tu-1 { position: absolute; right: 2.5rem; top: 2.5rem; width: 45px; height: 45px; } } .backgroundImg { background: url("../../../assets/images/result1.png") no-repeat; background-size: 100% 100%; } } </style>