html 스크롤 헤더 테이블 고정

html 스크롤 헤더 테이블 고정

QA

html 스크롤 헤더 테이블 고정

본문

<div class="co_wrapper" style="overflow: auto; overflow-x:hidden; width: 740px; height: 550px;">

    <table id="list-table" class="table_wrap">
<colgroup>
<col width="75px"/>
<col width="65px"/>
<col width="65px"/>
<col width="*"/>
<col width="153px"/>
</colgroup>
<thead>
<tr>
<th>No</th>
<th>Type_A</th>
<th>Type_B</th>
            <th>Type_C</th>
            <th>Type_D</th>
        </tr>
</thead>
<tbody > </tbody>
</table>

</div> 

 

스크롤 내릴때 헤더 부분을 고정 시키고 싶습니다.

div이를 나눠야 될거 같은데.. 어떻게 해야하죠..?

고정시키고 싶은 부분은

            <th>No</th>

            <th>Type_A</th>
<th>Type_B</th>
            <th>Type_C</th>
            <th>Type_D</th>

이 구문입니다!

고수님들 부탁드립니다!

이 질문에 댓글 쓰기 :

답변 1

답변을 작성하시기 전에 로그인 해주세요.
전체 10,637
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT