求助!vue框架写的网页底部总是有白边去不掉,望解答

上代码:

<template>
  <div id="app">
    <a-layout id="components-layout-demo-top" class="layout">
      <a-layout-header>

        <a-menu
            theme="dark"
            mode="horizontal"
            :default-selected-keys="['2']"
            :style="{ lineHeight: '64px' }"
        >
          <a-menu-item key="1">
            nav 1
          </a-menu-item>
          <a-menu-item key="2">
            nav 2
          </a-menu-item>
          <a-menu-item key="3">
            nav 3
          </a-menu-item>
        </a-menu>
      </a-layout-header>
      <a-layout-content style="padding: 0 50px">
        <a-breadcrumb style="margin: 16px 0">
          <a-breadcrumb-item>Home</a-breadcrumb-item>
          <a-breadcrumb-item>List</a-breadcrumb-item>
          <a-breadcrumb-item>App</a-breadcrumb-item>
        </a-breadcrumb>
        <div :style="{ background: '#fff', minHeight: '280px' }">
          Content
        </div>
      </a-layout-content>

    </a-layout>
  </div>
</template>

<script>


export default {
  name: 'App',
  components: {

  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;

}
body{
  padding:0;
}

</style>

 

你这个明显是没设置高度,最外层的app都没撑满,

<div :style="{ background: '#fff', minHeight: '280px',height:'800px' }">
    Content
</div>

这里设置随便设置个高度就行了,你之所以现在有一点高度是设置了min-height:200px;

你的目的是让a-layout-content这个标签占据剩下的所有空间,

html,body,#app{height:100%}
.a-layout{display:flex;min-height:100%}
header{flex:0}
content{flex:1}
如果有footer,就加上
footer{flex:0}

 

照你的这么改了,还是不行啊,什么变化都没有