css隐藏滚动条
谷歌
/* 使用伪类选择器 ::-webkit-scrollbar ,兼容chrome和safari浏览器 */
.sidebarRight::-webkit-scrollbar {
width: 0px;
// display: none; 也是可以的
}
IE
/* 兼容IE10+ */
.sidebarRight { -ms-overflow-style: none; }
火狐
.sidebarRight { overflow: -moz-scrollbars-none; } // 不生效.
原创
2021-03-30 14:33:09 ·
239 阅读 ·
0 评论