반응형
<colgroup> 태그는 테이블에있는 하나 이상의 열에 그룹을 지정합니다.
<!DOCTYPE html>
<html>
<body>
<table border="1">
<colgroup>
<col span="2" style="background-color:red" />
// 이부분이 span은 테이블의 2열의 색을 말한다. 숫자를 변경하면 숫자열만큼 변경된다.
<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>
<tr>
<td>5869207</td>
<td>My first CSS</td>
<td>$49</td>
</tr>
</table>
</body>
</html>
반응형
'progarm_old > [HTML-JS]' 카테고리의 다른 글
금지단어 설정하기 (0) | 2012.06.21 |
---|---|
urldecode/urlencode 디코더/인코더 (0) | 2012.06.05 |
[HTML] 기본 회원가입때 필요한 소스 (0) | 2012.04.18 |
[HTML_JS] 12.02.09 - (0) | 2012.02.09 |
[HTML_JS] 12.02.08 - jQurey 3 ,FV (0) | 2012.02.08 |