table 내 th 간격 맞추는 방법

table 내 th 간격 맞추는 방법

QA

table 내 th 간격 맞추는 방법

답변 1

본문

1889326059_1715131484.8467.png

 

안녕하세요

테이블에서 각 셀의 너비를 맞추려고하는데 Widest Thread Diameter.. 저 부분만 colgroup으로 조정이 되고 그 밑에 두 th는 뭔 짓을 해도 width 조정이 안됩니다 ㅠㅠ 어떻게 저 둘 간격을 수정할 수 있을까요?
 


 <table>
    <colgroup>
      <col style="width:20%">
      <col style="width:15%">
      <col style="width:15%">
      <col style="width:30%">
    </colgroup>
    <thead>
      <tr>
        <th rowspan="2">
          (Core) Implant Diameter
        </th>
        <th rowspan="2">Thread</th>
        <th rowspan="2">Cuff</th>
        <th rowspan="2">Length</th>
        <th colspan="2">Widest Thread Diameter</th>
      </tr>
      <tr>
        <th>Diameter</th>
        <th>Deep</th>
      </tr>
    </thead>
 </table>

이 질문에 댓글 쓰기 :

답변 1

    <colgroup>
      <col style="width:20%">
      <col style="width:15%">
      <col style="width:15%">
      <col style="width:30%">
      <col style="width:10%">
      <col style="width:10%">
    </colgroup>

이렇게 6칸으로 입력을 하셔야 합니다.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 25
© SIRSOFT
현재 페이지 제일 처음으로