Newer
Older
CloudBrainNew / src / components / borderBox / borderBox1.vue
StephanieGitHub on 4 Feb 2021 624 bytes first commit
<!--
 * @Description:
 * @Author: 王晓颖
 * @Date:
 -->
<template>
  <div class="box" :style="{height:height+'rem'}"></div>
</template>

<script>
export default {
  name: 'borderBox1',
  props: {
    height: {
      type: String,
      default: '0.21'
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  .box {
    background: url("../../assets/images/title.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.05rem;
  }
</style>