Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c634216

Browse files
author
ShiHao
committed
解决bug:modal弹窗双滚动条问题
1 parent ddc6f4f commit c634216

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎css/default.css‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
html, body { background: #f9f9f9; -ms-overflow-style: scrollbar; /*ie-scrollbar*/ overflow-x: hidden; /* Prevent scroll on narrow devices */ }
1+
html, body { background: #f9f9f9; -ms-overflow-style: scrollbar; /*ie-scrollbar*/ }
2+
3+
@media(max-width:768px) {
4+
html, body { overflow-x: hidden; /* Prevent scroll on narrow devices */ }
5+
}
6+
27
.all { margin-top: 50px; margin-left: 220px; z-index: 20; padding-left: 0; padding-right: 0; }
38
.sidebar { position: fixed; left: 0; top: 50px; width: 220px; padding: 0; background-color: #f1f1f1; -webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: -blackberry-touch; border-right: 1px solid #ccc; overflow-y: auto; overflow-x: hidden; height: 100%; }
49
.sidebar ul { list-style-type: none; margin: 0; padding: 0; }

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /