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

codeigniter - Fatal error: Call to undefined function lang() in CI Merchant using CardSave -

javascript - CasperJS/PhantomJS failing SSL handshakes on some sites even with --ssl-protocol=any -

python - Received unregistered task using Celery with Django -