vue学习经验总结(子组件高度自适应撑满整屏)

1.在app.vue页面设置高度百分百

<style lang="stylus">
#app{
  height: 100%;
  margin: 0;
  padding: 0;
}
</style>

2.在子组件中设置height:100%;即可

具体可以参考:https://blog.csdn.net/qq_39174924/article/details/103420766

猜你喜欢

转载自blog.csdn.net/huhuhuja/article/details/112219640