Vant底部tabbar盖住内容怎么解

<router-view />下面增加一个<div style="height: 5rem;"></div>

 

 参考

<template>
  <div id="app">
    <router-view />
    <div style="height: 5rem;"></div>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="less">
.size {
  width: 100%;
  height: 100%;
}
#html,
#body {
  .size;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
#app {
  .size;
}
</style>

 

posted @ 2020-06-03 11:25  青竹玉简  阅读(2049)  评论(0编辑  收藏  举报