jquery - Use some CSS only if user has JavaScript enabled -


in order webpage degrade gracefully, have css should loaded if corresponding javascript function.

what simplest way load local css if , if browser has javascript enabled?

also it's quite big block of css, i'd rather not have write javascript line add each attribute. (oh, , if necessary can use jquery).

set class on body tag of "nojs". use javascript remove class.

for css rules want used when no js present, use .nojs .myrules {}


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -