问题描述
使用循环iam能够使用javascript通过以下代码在网格视图中找到列现在我如何设置widht到列
var tbl = document.getElementById(dgTbl);
for(var i = 0; i< tbl.rows.length; i ++){
for (var j = 0; j< colNo; j ++){
if(tbl.rows [i] .cells [j]!= null){
tbl.rows [i] .cells [j] .className =locked;
}
}
}
hi using loop iam able to find the columns in the grid view using javascript by below code now how can i set widht to the columns
var tbl = document.getElementById(dgTbl);
for (var i = 0; i < tbl.rows.length; i++) {
for (var j = 0; j < colNo; j++) {
if (tbl.rows[i].cells[j] != null) {
tbl.rows[i].cells[j].className = "locked";
}
}
}
这篇关于如何使用javascript设置网格视图列高度和widh的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!