javascript - jquery: have a certain css on mac safari only -


There is some kind of F on the page, where a div is shown in a way, it is only on Mac Safari Understand, instead of doing the whole thing again, jquery hacks will be easy to use.

This code is used to target Mac Safari, but it does not work. Can someone, please, indicate the mistake?

  if ((Navigator.pl.index ("MAC")! = -1) & amp; amp; (Navigator.UGGent.Match (/ msie | trident / i)) { $ (". Hiddengg img") CSS ('display', 'none');  

Thanks!

Try using Navigator platform.indexOf ("MAC") . See quotation marks there?

You have not used "" and "" .


Comments

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -