美文网首页
LESS-界面滚动时不显示默认滚动条,定制滚动条

LESS-界面滚动时不显示默认滚动条,定制滚动条

作者: cs大个子女生 | 来源:发表于2021-07-07 15:25 被阅读0次

.el-menu-vertical {

    overflow-x: hidden;

    overflow-y: auto;

    flex: 1;

    height: calc(100% - 64px);

    &::-webkit-scrollbar {

        width: 0px;

        background-color: transparent;

        &-track-piece {

            width: 0px;

            background-color: transparent;

        }

        &-thumb {

            width: 0px;

            background-color: transparent;

            cursor: pointer;

            &:hover {

                background-color: transparent;

            }

        }

    }

}

相关文章

网友评论

      本文标题:LESS-界面滚动时不显示默认滚动条,定制滚动条

      本文链接:https://www.haomeiwen.com/subject/nvgoultx.html