1
テーブルの幅をパーセントで計算し、その幅をテーブルに割り当てる方法tbody td javascript?JavaScriptでピクセルの代わりにテーブルの幅をパーセンテージで計算する
$('#headerwidth').find('thead th').each(function(){
var rowval = $(this).outerWidth()+'px' ;
テーブルの幅をパーセントで計算し、その幅をテーブルに割り当てる方法tbody td javascript?JavaScriptでピクセルの代わりにテーブルの幅をパーセンテージで計算する
$('#headerwidth').find('thead th').each(function(){
var rowval = $(this).outerWidth()+'px' ;
おそらくthead
に電流ループ内の一つのループを記述する必要があります。
$('#headerwidth').find('thead th').each(function(){
var rowval = $(this).outerWidth()+'px' ;
$('#headerwidth').find('tbody tr td').each(function(){
$(this).css("width", rowval)
});
});