JQuery. Setting css for browsers under MacOS


/ Published in: JavaScript
Save to your folder(s)

setting additional css file for browsers under MacOS with JQuery


Copy this code and paste it in your HTML
  1. $(document).ready(function(){
  2.  
  3. if (navigator.appVersion.indexOf("Mac")!=-1) {
  4. if($.browser.mozilla){ //if mozilla
  5.  
  6. $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ff_mac.css" />');
  7.  
  8. }
  9. if($.browser.msie){ //if IE
  10.  
  11. $('head').append('<link rel="stylesheet" type="text/css" media="all" href="ie_mac.css" />');
  12.  
  13. }
  14.  
  15. //...etc
  16. }
  17.  
  18. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.