当前位置:网站首页>How to display scrollbars on the right side of the background system and how to solve the problem of double scrollbars

How to display scrollbars on the right side of the background system and how to solve the problem of double scrollbars

2022-07-01 03:35:00 ohm_ coder

1. stay <router-view /> The label is wrapped here

 <!--  On the right  -->
    <div class="content_container">
      <router-view></router-view>
    </div>

css

   //    On the right 
    .content_container {
    position: absolute;
    top: 70px;
    left: 250px;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    }

About css The explanation written like this

2. A double scroll bar appears

Solution

stay app.vue file

  Code

#app {
  height: 100%;
  overflow: hidden;
}

Perfect solution

原网站

版权声明
本文为[ohm_ coder]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207010313453768.html