This commit is contained in:
ken 2026-07-20 13:38:18 +08:00
parent 2f327744cb
commit df31288218
1 changed files with 14 additions and 0 deletions

View File

@ -766,6 +766,20 @@ $(function() {
$(this).attr("style", newStyle);
}
});
$(function() {
function fixThColspanScope() {
setTimeout(function() {
$('th[colspan]').each(function() {
var colspan = parseInt($(this).attr('colspan'), 10);
if (colspan >= 2) {
$(this).attr('scope', 'colgroup');
}
});
}, 500);
}
fixThColspanScope();
});
// //表格scope
// $("table").each(function() {
// $(this).find("tr").each(function(rowIndex) {