【问题标题】:Vue 3 - scrolling not possible. No scrollbar on browserVue 3 - 无法滚动。浏览器没有滚动条
【发布时间】:2022-01-13 11:22:06
【问题描述】:

我创建了几个 v-for 循环,一些 div 比我的屏幕大。但是 Firefox 或 Chrome 上没有滚动条。所以他们切掉了我的 div,我只能看到 div 的一部分。

我在 Vue 上错过了什么吗?

Lot of Data but no scrollbar

Lot of data is fetched and stored in items

    <template>
  <div class="ChildAddItem">
      <div>Searchbar placeholder</div>
         <div class="ItemChoiche" v-for="(item, index) in items" :key="index">
          <table>
            <tr>
              <td>{{item}}</td>
            </tr>

          </table>
        <p v-if="item == null">Null</p>
        
      <p>test</p>
      </div>
  </div>
</template>

<script>
export default {
 data: () => ({
    openItemsearch: false,
    groupid: '',
    playerid: '',
    items: []    
    }),
mounted() {
   this.$axios.get("getallData").then((response) => (this.items = response.data));
   this.groupid = this.$route.params.group;
   this.playerid = this.$route.params.player;
  },
}
</script>

<style>

</style>

【问题讨论】:

    标签: vue.js scrollbar


    【解决方案1】:

    通过移除位置解决:固定在导航栏css中

    【讨论】:

    • 您的答案可以通过额外的支持信息得到改进。请edit 添加更多详细信息,例如引用或文档,以便其他人可以确认您的答案是正确的。你可以找到更多关于如何写好答案的信息in the help center
    猜你喜欢
    • 2018-08-31
    • 2010-09-06
    • 2015-11-20
    • 1970-01-01
    • 2010-11-15
    • 2015-08-11
    • 1970-01-01
    • 2011-12-06
    相关资源
    最近更新 更多