隐藏IE、谷歌、火狐浏览器滚动条

    
    html,
    body,
    #app {
      -ms-overflow-style: none;//IE浏览器
      scrollbar-width:none;//火狐
    }
    
    //谷歌第一种
    ::-webkit-scrollbar {
      width: 0;
      height: 0;
      background-color: transparent;
    }
    //谷歌第二种
    ::-webkit-scrollbar {
      display:none;
    }

评论

暂无评论