<tfoot id='Fyro5'></tfoot>

  • <small id='Fyro5'></small><noframes id='Fyro5'>

      <bdo id='Fyro5'></bdo><ul id='Fyro5'></ul>

        <i id='Fyro5'><tr id='Fyro5'><dt id='Fyro5'><q id='Fyro5'><span id='Fyro5'><b id='Fyro5'><form id='Fyro5'><ins id='Fyro5'></ins><ul id='Fyro5'></ul><sub id='Fyro5'></sub></form><legend id='Fyro5'></legend><bdo id='Fyro5'><pre id='Fyro5'><center id='Fyro5'></center></pre></bdo></b><th id='Fyro5'></th></span></q></dt></tr></i><div id='Fyro5'><tfoot id='Fyro5'></tfoot><dl id='Fyro5'><fieldset id='Fyro5'></fieldset></dl></div>

      1. <legend id='Fyro5'><style id='Fyro5'><dir id='Fyro5'><q id='Fyro5'></q></dir></style></legend>

        Ionic 2:隐藏滚动条并继续滚动

        时间:2023-09-07
          • <bdo id='W3AA0'></bdo><ul id='W3AA0'></ul>

            <small id='W3AA0'></small><noframes id='W3AA0'>

                <tbody id='W3AA0'></tbody>

              • <legend id='W3AA0'><style id='W3AA0'><dir id='W3AA0'><q id='W3AA0'></q></dir></style></legend>

                <tfoot id='W3AA0'></tfoot>
                  <i id='W3AA0'><tr id='W3AA0'><dt id='W3AA0'><q id='W3AA0'><span id='W3AA0'><b id='W3AA0'><form id='W3AA0'><ins id='W3AA0'></ins><ul id='W3AA0'></ul><sub id='W3AA0'></sub></form><legend id='W3AA0'></legend><bdo id='W3AA0'><pre id='W3AA0'><center id='W3AA0'></center></pre></bdo></b><th id='W3AA0'></th></span></q></dt></tr></i><div id='W3AA0'><tfoot id='W3AA0'></tfoot><dl id='W3AA0'><fieldset id='W3AA0'></fieldset></dl></div>
                  本文介绍了Ionic 2:隐藏滚动条并继续滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我只想在需要滚动的页面中隐藏滚动条.我正在使用离子 2

                  I just want to hide the scrollbar, in a page that needs scrolling. I am using Ionic 2

                  我的不起作用解决方案:

                  .scroll-content-bar{
                       overflow: hidden;
                  }
                  

                  此解决方案隐藏滚动条使屏幕无法滚动.

                  This solution hide the scroll-bar but makes the screen unscrollable.

                  推荐答案

                  首先,改变浏览器的自然行为和预期的用户体验是一个冒险的举动.

                  First and foremost, changing natural behavior of the browser and expected user experience is a risky move.

                  但是,如果您仍然真的很想这样做,我认为您最好的选择是伪造它.在这种情况下,将 width 设置为 0 就足够了,但我还将背景颜色更改为完全透明.

                  However, if you still really really want to, I think your best bet is to fake it. In this case, setting width to 0 should be enough but I'm also changing background colors to be completely transparent.

                  div{
                    background: gray;
                    height: 200px;
                    overflow-y: scroll;
                  }
                  
                  p{
                    border-bottom: 1px solid black;
                  }
                  
                  div::-webkit-scrollbar {
                    border:none;
                    width:0;
                    background: rgba(0,0,0,0);
                  }
                   
                  div::-webkit-scrollbar-track {
                    border:none;
                    width:0;
                    background: rgba(0,0,0,0);
                  }
                   
                  div::-webkit-scrollbar-thumb {
                    border:none;
                    width:0;
                    background: rgba(0,0,0,0);
                  }

                  <div>
                    <p>content</p>
                    <p>content</p>
                    <p>content</p>
                    <p>content</p>
                    <p>content</p>
                    <p>content</p>
                    <p>content</p>
                    <p>content</p>
                    <p>content</p>
                    <p>content</p>
                  </div>

                  这篇关于Ionic 2:隐藏滚动条并继续滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:angular2 使用 HTTP 发布 XML 类型的请求数据 下一篇:以角度每 x 秒发出一次 http 请求

                  相关文章

                  最新文章

                  <i id='FoLT4'><tr id='FoLT4'><dt id='FoLT4'><q id='FoLT4'><span id='FoLT4'><b id='FoLT4'><form id='FoLT4'><ins id='FoLT4'></ins><ul id='FoLT4'></ul><sub id='FoLT4'></sub></form><legend id='FoLT4'></legend><bdo id='FoLT4'><pre id='FoLT4'><center id='FoLT4'></center></pre></bdo></b><th id='FoLT4'></th></span></q></dt></tr></i><div id='FoLT4'><tfoot id='FoLT4'></tfoot><dl id='FoLT4'><fieldset id='FoLT4'></fieldset></dl></div>
                1. <legend id='FoLT4'><style id='FoLT4'><dir id='FoLT4'><q id='FoLT4'></q></dir></style></legend>

                    • <bdo id='FoLT4'></bdo><ul id='FoLT4'></ul>
                  1. <tfoot id='FoLT4'></tfoot>

                      <small id='FoLT4'></small><noframes id='FoLT4'>