File tree 2 files changed +6
-6
lines changed
2-ui/1-document/03-dom-navigation/4-select-diagonal-cells
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
- We'll be using ` rows ` and ` cells ` properties to access diagonal table cells .
1
+ Ми будемо використовувати властивості ` rows ` та ` cells ` для доступу до діагональних клітинок таблиці .
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ importance: 5
2
2
3
3
---
4
4
5
- # Select all diagonal cells
5
+ # Виділіть усі діагональні клітинки
6
6
7
- Write the code to paint all diagonal table cells in red .
7
+ Напишіть код, щоб зафарбувати всі діагональні клітинки таблиці червоним кольором .
8
8
9
- You'll need to get all diagonal ` <td> ` from the ` <table> ` and paint them using the code :
9
+ Вам потрібно буде отримати всі діагоналі ` <td> ` з ` <table> ` і розфарбувати їх за допомогою коду :
10
10
11
11
``` js
12
- // td should be the reference to the table cell
12
+ // у td має бути посилання на клітинку таблиці
13
13
td .style .backgroundColor = ' red' ;
14
14
```
15
15
16
- The result should be :
16
+ Результат повинен бути таким :
17
17
18
18
[ iframe src="solution" height=180]
You can’t perform that action at this time.
0 commit comments