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