window.onload=function(){ changeTableHeight(); } window.onresize=function(){ changeTableHeight(); } function changeTableHeight(){ $(".proshowParameter table th").each(function (i,o){ var $this=$(o), height=$this.next().height(); $(this).css("height",height); var obj = $(o); var val = obj.text(); if(val == '' || val == null || val == undefined){ $(this).addClass('none'); }else{ $(this).removeClass('none'); } }); $(".proshowParameter table td").each(function (i,o){ var obj = $(o); var val = obj.text(); if(val == '' || val == null || val == undefined){ $(this).addClass('none'); }else{ $(this).removeClass('none'); } }); }
阅读全文