Home › Forums › CSS › Chrome specific? › Re: Chrome specific?
October 21, 2011 at 11:15 am
#89435
Member
I used some jQuery for this recently.
$(document).ready(function(){
var Chrome = false;
if (navigator.userAgent.toLowerCase().indexOf('chrome') > -1) {
Chrome = true;
$('body').addClass('chrome');
}
});
This will add the class of ‘chrome’ to your body tag.