当前位置:网站首页>实现缺省页面

实现缺省页面

2022-04-23 15:45:00 知命者夏洛特

 

 <div v-else class="nothing category-wrap">
     <em></em>
     <span>什么也没有~</span>
 </div>


//css

.nothing {
  width: 100%;
  height: 238px;
  padding-top: 31px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  em {
    width: 96px;
    height: 125px;
    margin-bottom: 19px;
    background-image: url('~@/assets/icon/nothing.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
  span {
    width: auto;
    height:20px;
    font-size:14px;
    font-weight:400;
    color:rgba(162,160,168,1);
    line-height:20px;
  }
}

版权声明
本文为[知命者夏洛特]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_41815063/article/details/124299091