사이드 뷰 가려짐 문제..ㅠ 채택완료

3년 전 조회 2,491

부트스트랩 인데...

Copy
<!-- 현재접속자 목록 시작 { -->
<div class="bg-info text-white text-center py-2 rounded">
    <p>( 총 접속자 : <?php echo number_format($stats['now_mb']) ?> / <?php echo number_format($stats['now_total']) ?>명 )</p>
</div>
<div id="current_connect">
<table class="table table-striped w-100">
    <?php
    for ($i=0; $i<count($list); $i++) {
        //$location = conv_content($list[$i]['lo_location'], 0);
        $location = $list[$i]['lo_location'];
        // 최고관리자에게만 허용
        // 이 조건문은 가능한 변경하지 마십시오.
        if ($list[$i]['lo_url'] && $is_admin == 'super') $display_location = "<a href=\"".$list[$i]['lo_url']."\">".$location."</a>";
        else $display_location = $location;

        if (!$list[$i]['name']) continue;

        if ($list[$i]['mb_level'] == 1) $list[$i]['level'] = "①";
        else if ($list[$i]['mb_level'] == 2) $list[$i]['level'] = "②";
        else if ($list[$i]['mb_level'] == 3) $list[$i]['level'] = "③";
        else if ($list[$i]['mb_level'] == 4) $list[$i]['level'] = "④";
        else if ($list[$i]['mb_level'] == 5) $list[$i]['level'] = "⑤";
        else if ($list[$i]['mb_level'] == 6) $list[$i]['level'] = "⑥";
        else if ($list[$i]['mb_level'] == 7) $list[$i]['level'] = "⑦";
        else if ($list[$i]['mb_level'] == 8) $list[$i]['level'] = "⑧";
        else if ($list[$i]['mb_level'] == 9) $list[$i]['level'] = "⑨";
        else $list[$i]['mb_level'] = "⑩";
    ?>
        <tr>
            <td>
                <?php echo $list[$i]['level']; ?>
                <?php echo $list[$i]['name']; ?>
                (<?php echo ($list[$i]['mb_level']) ? get_member_grade($list[$i]['mb_level']) : $list[$i]['mb_level']; ?>)
            </td>
        </tr>
    <?php
    }
    if ($i == 0)
        echo "<tr class=\"empty_li\">현재 접속자가 없습니다.</tr>";
    ?>
</table>

 

#current_connect { height:125px; overflow:auto;  }
#current_connect table {}
#current_connect table td { padding:5px !important; }

작동하고 있습니다.

1982600908_1672553190.5447.png

이렇게 나오네요. 어딜 건들여야 될까요?

답변 1개

채택된 답변
+20 포인트

CSS z-index 속성에 관해서 구글링해서 공부해 보세요.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

index 수정해도 안되던데....
overflow:auto; 랑 충돌일어나는거같은데..흠..=

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고