테스트 사이트 - 개발 중인 베타 버전입니다

검색했을때도 게시판 상단 두개는 고정되게 채택완료

쿨가이쭌 3년 전 조회 1,923

공지사항 소스를 참고하여 게시판으로 이동하였을때는 상단 위에 두개가 고정이 잘되어있는데

검색에서 검색하면 위에 고정시켜놨던것들이 없어지고 다른것이 올라가있는데

검색을 해도 상단 두개가 항상 고정되있게 할수있는 방법좀 알려주세요 ㅠㅠㅠㅠㅠ

 

 

 

 

<?php for ($i=0; $i<count($list); $i++) {

if($i>0 && ($i % $bo_gallery_cols == 0))

$style = '';

else

$style = '';

if ($i == 0) $k = 0;

$k += 2;

if ($k % $bo_gallery_cols == 0) ;

?>

 

<?php

if ($list[$i]['is_notice']) { // 공지사항 ?>

<ul class="bl_box">

<?} else{?>

<ul class="bl_box" style="<?php echo $style ?>">

<?}?>

<li class="zoom" >

<a href="<?php echo $list[$i]['href'] ?>" style="position:relative;">

<?

$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'], false, true, 'top');

if($thumb['src']) {

$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';

} else {

$img_content = '<div class="no_img1" style="width="'.$width.'" height="'.$height.'"><img src="/theme/basic/img/who2.png"></div>';

}

echo $img_content;

?>

 

</a>

 

</li>

<li class="bl_w25"></li>

<li class="zoom">

<a href="<?php echo $list[$i]['href'] ?>" style="position:relative; display:block;">

<?php

$thumb1 = get_list_thumbnail_1($board['bo_table'], $list[$i]['wr_id'], $board['bo_gallery_width'], $board['bo_gallery_height'],1);

if($thumb1['src']) {

$img_content1 = '<img src="'.$thumb1['src'].'" alt="'.$thumb1['alt'].'" width="'.$board['bo_gallery_width'].'" height="'.$board['bo_gallery_height'].'">';

} else {

$img_content1 = '<div class="no_img1" style="width="'.$width.'" height="'.$height.'"><img src="/theme/basic/img/who2.png"></div>';

}

echo $img_content1;

?>

</a>

 

</li>

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

답변 1개

https://sir.kr/gujik/1290" rel="nofollow noreferrer noopener" target="_blank">https://sir.kr/gujik/1290 에 저의 연락처가 있습니다

핸드폰으로 연락주시면 같이 고민 해드릴게요

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

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

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

로그인