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
Post a Comment