Skip to content

Commit e32dcef

Browse files
author
521xueweihan
committed
fix: hidden-scrollbar
1 parent ace7737 commit e32dcef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/styles/globals.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,13 @@ svg {
226226
transition: height 0.4s 0.4s, transition 0.4s;
227227
}
228228

229+
.hidden-scrollbar {
230+
scrollbar-width: none; /* Firefox */
231+
-ms-overflow-style: none; /* IE and Edge */
232+
}
233+
229234
.hidden-scrollbar::-webkit-scrollbar {
230-
/* 隐藏默认的滚动条 */
231-
-webkit-appearance: none;
232235
display: none;
233-
width: 0px;
234236
}
235237

236238
/* 自定义滚动条 */

0 commit comments

Comments
 (0)