컴퓨터

표 합치기 셀 병합 rowspan colspan

sayyesdoit 2019. 10. 11. 11:27

  표 안의 셀을 합칠(병합할) 때가 있다. 그럴 때 쓰는 attribute 가 rowspan과 colspan이다.

<td rowspan=3></td>
<td colspan=2></td>

  줄을 합칠 때는 rowspan을, 칸을 합칠 때는 colspan을 사용한다. 이거 정말 안 외워진다. 적어놓고 필요할 때마다 찾아보자.