我们希望让这个开源项目对全世界的人们可用。
帮助翻译本教程的内容到您的语言!
编写代码将所有对角线表格单元格涂成红色。
您需要从 <table> 中获取所有对角线 <td> 并使用以下代码对其进行绘制
<table>
<td>
// td should be the reference to the table cell td.style.backgroundColor = 'red';
// td should be the reference to the table cell
.
=
'red'
;
结果应该是
打开任务的沙箱。
我们将使用 rows 和 cells 属性来访问对角线表格单元格。
rows
cells
在沙箱中打开解决方案。