1. 添加样式绑定
<div class="container" :style="{height: scrollerHeight}"> </div>
2. 添加属性计算
computed: { // 滚动区高度 scrollerHeight: function() { return (window.innerHeight - 50) + 'px'; //自定义高度需求 } }
<div class="container" :style="{height: scrollerHeight}"> </div>
computed: { // 滚动区高度 scrollerHeight: function() { return (window.innerHeight - 50) + 'px'; //自定义高度需求 } }
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M