HTML <col> 스팬 속성
예시
여기에서 처음 두 열의 배경색은 빨간색이어야 합니다.
<table>
<colgroup>
<col span="2" style="background-color:red">
<col style="background-color:yellow">
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
</tr>
<tr>
<td>3476896</td>
<td>My first HTML</td>
<td>$53</td>
</tr>
</table>
정의 및 사용
속성 은 요소가 확장되어야
span
하는 열의 수를 정의합니다 .
<col>
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
span | Yes | Yes | Yes | Yes | Yes |
통사론
<col span="number">
속성 값
Value | Description |
---|---|
number | Sets the number of columns a <col> element should span |
❮ HTML <col> 태그