I get this error \"Cannot read property \'0\' of null.\"
I have a table with
somename.html
4条回答 说谎 (楼主) 2021-01-13 09:00 if your id is unique then this will work document.getElementById('td1').style.color = 'blue'; 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
if your id is unique then this will work
id
document.getElementById('td1').style.color = 'blue';