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

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -