mirror of
https://github.com/jimeh/jimeh.me-v3.0.git
synced 2026-02-19 05:46:40 +00:00
fixed a bug in Firefox with the webkit scrollbar
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
$(document).ready(function(){
|
||||
if (navigator.userAgent.match(/Mobile.*Safari|Safari.*Mobile/i) !== null) {
|
||||
$("body").css("position", "static").css("overflow-y", "auto").css("overflow-x", "auto");
|
||||
};
|
||||
if (navigator.userAgent.match(/Mobile.*Safari|Safari.*Mobile/i) !== null || navigator.userAgent.match(/Safari/) == null) {
|
||||
$("body").css("position", "static").css("overflow-y", "auto").css("overflow-x", "auto").css("right", "");
|
||||
};
|
||||
});
|
||||
@@ -1,16 +1,16 @@
|
||||
html {
|
||||
overflow-y: auto;
|
||||
background-color: transparent;
|
||||
overflow-y: auto;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
body {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 10px;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
right: 10px;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* @group ::-webkit-scrollbar */
|
||||
|
||||
Reference in New Issue
Block a user