js 单击选中td 使td变化背景颜色

2025-03-01 20:51:12
推荐回答(3个)
回答1:

献上微薄之力


changeTdColor




















1 2 3
4 5 6
7 8 9


回答2:

document.getElementById("tdId").style.backgroundColor="red";
tdId 是td的id

回答3:

没有