<!-- tr= table row / td= table data -->
<!-- colspan 열 병합 -->
<section>
<table width="100%" border="1px solid black;">
<tr height="40px" align="center">
<td colspan="4">4칸병합</td>
</tr>
<tr height="40px" align="center">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
</tr>
</table>
</section>
4칸병합 | |||
1 | 2 | 3 | 4 |
<!-- rowspan = 행병합 -->
<section>
<table width="400" border="1px dash green;">
<tr height="50" align="left">
<td rowspan="4" width="50%" >4행병합</td>
<td>1</td>
</tr>
<tr height="50" align="left">
<td>2</td>
</tr>
<tr height="50" align="left">
<td>3</td>
</tr>
<tr height="50" align="left">
<td>4</td>
</tr>
</table>
</section>
4행병합 | 1 |
2 | |
3 | |
4 |
border-radius도 가능하니 참고해보자
참고:
https://www.w3schools.com/html/html_table_borders.asp
HTML Table Borders
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
'IT > 웹개발개발공부' 카테고리의 다른 글
Java Script 대신 PHP 쓰는 이유-서버 사이드 스크립트 특징 (0) | 2024.05.06 |
---|---|
명령프롬프트에서 원하는 폴더에서 vsc실행 (0) | 2024.02.22 |
애플,삼성 모델 별 viewport sizes (화면사이즈,해상도) (0) | 2024.02.03 |
반응형 웹-미디어 쿼리 @media (0) | 2024.02.03 |
프론트엔드 언어의 폴더 이동 방법 (0) | 2024.02.03 |