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

.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-界面滚动时不显示默认滚动条,定制滚动条)