javascript - Trying to get a bit of jQuery to work on IE7 -


This code will be sent to each menu item. NAV is to take in the bar and place them across equally shipping it is currently nothing in IE7.

  $ (document) .ready (function () {var a = $ ('.nav & gt; li & gt; a'). Length; var b = $ ('# navholder ') (Width) - $ ('. NAV '). Width (); var C = (B / A) / 2; $ ('. NAV & gt; Li '). CSS (' margin ',' 0 '+ Math Floor (C3) +' PX ');); Do anyone know?   

Try this:

  var b = $ ('# navholder '). CSS ('width') - $ ('. NAV'). CSS ('width'); Instead of   

:

  var b = $ ('# navholder'). Width () - $ ('. NAV'). Width ();    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -