최신글 table

최신글 table

QA

최신글 table

답변 1

본문

latest.skin.php

<table>
    <caption></caption>
        <thead>
            <tr>
                <th scope="col">NO.1</th>
                <th scope="col">NO.2</th>
                <th scope="col">NO.3</th>
                <th scope="col">NO.4</th>
            </tr>
        </thead>
        <tbody>
        <?php for ($i=0; $i<count($list); $i++) { ?>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        <?php } ?>
    </tbody>
</table>

 

list.skin.php

<section>
    <h2></h2>
    <?php echo latest('theme/basic', 'basic_1', 5, 23); ?>
    <?php echo latest('theme/basic', 'basic_2', 5, 23); ?>
    <?php echo latest('theme/basic', 'basic_3', 5, 23); ?>
</section>

3731885385_1572499013.1614.jpg

 

 

thead 는 한줄로 맨위에 고정시키고싶고, 여러개의 게시판에서 테이블 tbody 에 출력시키고싶은데
list.skin.php에 table코딩을 해야되는건가요?

 

3731885385_1572499025.8309.jpg

thead가 붙어서 그냥 하나씩 세개가 나와요 ㅠㅠ

이 질문에 댓글 쓰기 :

답변 1

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