javascript - Control table width with Jquery issue -


i have question regarding ie7

i want make every column of table has same width no matter contents have

 $("table").each(function(){         var column =0;          var totalwidth = $(this).width();         $('tr:nth-child(1) td',this).each(function(){             column ++;         })          var cellwidth = totalwidth / column;         $('td', this).css('width', cellwidth);     }) 

my codes work perfect on chrome , ff not ie 7. not sure why. can me it? lot!

nth-child css3 selector , not supported ie 7. try else.


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

c# - Delving into the world of XML (Windows Phone) Error I dont understand (The ' ' character, hexadecimal value 0x20, cannot be included in a name.) -

python - Received unregistered task using Celery with Django -