fixed a bug in Firefox with the webkit scrollbar

This commit is contained in:
2011-01-19 22:14:39 +00:00
parent 1465579057
commit bd2e4e1b9f
2 changed files with 12 additions and 12 deletions

View File

@@ -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", "");
};
});

View File

@@ -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 */