/ Published in: JavaScript
setting additional css file for browsers under MacOS with JQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$(document).ready(function(){ if (navigator.appVersion.indexOf("Mac")!=-1) { if($.browser.mozilla){ //if mozilla $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ff_mac.css" />'); } if($.browser.msie){ //if IE $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ie_mac.css" />'); } //...etc } });