<style>
body { margin:0;}
table {
margin: 32px 0 0;
border-collapse:collapse;
}
thead {
position: fixed;
top: 0;
background:tomato;
}
th {
border:1px solid silver;
height: 30px;
}
td { border:1px solid silver; }
th:nth-of-type(1), td:nth-of-type(1) { width:50px; }
th:nth-of-type(2), td:nth-of-type(2) { width:150px; }
tr:nth-child(even) { background: #fee; }
</style>
<table>
<thead>
<tr><th>번호</th><th>가나다순</th></tr>
</thead>
<tbody>
<tr><td>1</td><td>가</td></tr>
<tr><td>2</td><td>나</td></tr>
<tr><td>3</td><td>다</td></tr>
<tr><td>4</td><td>라</td></tr>
<tr><td>5</td><td>마</td></tr>
<tr><td>6</td><td>바</td></tr>
<tr><td>7</td><td>사</td></tr>
<tr><td>8</td><td>아</td></tr>
<tr><td>9</td><td>자</td></tr>
<tr><td>10</td><td>차</td></tr>
<tr><td>11</td><td>카</td></tr>
<tr><td>12</td><td>타</td></tr>
<tr><td>13</td><td>파</td></tr>
<tr><td>14</td><td>하</td></tr>
<tr><td>15</td><td>까</td></tr>
<tr><td>16</td><td>따</td></tr>
<tr><td>17</td><td>빠</td></tr>
<tr><td>18</td><td>싸</td></tr>
<tr><td>19</td><td>짜</td></tr>
<tr><td>20</td><td>끝</td></tr>
</tbody>
</table>
결과보기