답변 2개
아래의 코드를 한번 참고를 해보세요..
lisk.skin.php
// 현재 보고 있는 게시글 ID 가져오기
$current_wr_id = isset($_GET['wr_id']) ? $_GET['wr_id'] : '';
// 목록 출력 부분
for ($i=0; $i<count($list); $i++) {
// 현재 게시글인지 확인
$is_current = ($current_wr_id && $list[$i]['wr_id'] == $current_wr_id) ? 'current-post' : '';
echo '<tr class="'.$is_current.'">';
// 게시글 내용 출력
echo '</tr>';
}
css
/* 현재 보고 있는 게시글 강조 */
tr.current-post {
background-color: #e8f4ff !important;
border-left: 3px solid #4a90e2;
}
tr.current-post td {
font-weight: 500;
}
/* 호버 효과와 구분 */
tr.current-post:hover {
background-color: #d4e9ff !important;
}
댓글을 작성하려면 로그인이 필요합니다.

basic 스킨에 기본적으로 열람중으로 표시가 됩니다.
이를 활용해서 class 를 주면 됩니다.
list.skin.php 파일에서 아래 부분 참조해서
아래와 같이 응용하세요.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인