微件:FixTableHeader:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第15行: | 第15行: | ||
clone.style.width = table.style.width; | clone.style.width = table.style.width; | ||
table.parentNode.appendChild(clone); | table.parentNode.appendChild(clone); | ||
clone. | var rows = clone.getElementsByTagName('TR'); | ||
for (var i = 0; i < | for (var i = 0; i < rows.length; i++) { | ||
if (rows[i].getElementsByTagName('TD') == 0) { | |||
rows[i].style.visibility = 'visible'; | |||
rows[i].style.pointerEvents = 'auto'; | |||
rows[i].style.backgroundColor = 'white'; | |||
} else | |||
rows[i].style.visibility = 'hidden'; | |||
} | } | ||
} | } |