File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
2-ui/1-document/03-dom-navigation/4-select-diagonal-cells Expand file tree Collapse file tree 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
22
33---
44
5- # Select all diagonal cells
5+ # 모든 대각선 셀 선택하기
66
7- Write the code to paint all diagonal table cells in red .
7+ 테이블의 모든 대각선 셀을 빨간색으로 칠하는 코드를 작성해보세요 .
88
9- You'll need to get all diagonal ` <td> ` from the ` <table> ` and paint them using the code:
9+ ` <table> ` 에서 모든 대각선 ` <td> ` 를 가져와 아래 코드를 이용해 칠해야 합니다.
1010
1111``` js
12- // td should be the reference to the table cell
12+ // td는 테이블 셀에 대한 참조가 되어야 합니다.
1313td .style .backgroundColor = ' red' ;
1414```
1515
16- The result should be:
16+ 결과는 아래와 같습니다.
1717
1818[ iframe src="solution" height=180]
You can’t perform that action at this time.
0 commit comments