thumb 이미지 가로정렬 문제 도와 주십시요 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

thumb 이미지 가로정렬 문제 도와 주십시요 정보

thumb 이미지 가로정렬 문제 도와 주십시요

본문

http://www.sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=64881

위 링크의 청춘불안정님의 스킨을 사용하고 있습니다.

청춘불안정님 감사합니다.

질문은 위 뷰페이지에서 메인이미지 옆의 thumb 이미지를

메인이미지 바로 아래쪽에 가로정렬 시키고 싶습니다.

이리보고 저리봐도 실력이 무지한 관계로 안되네요

고수님들 도와 주시면 감사하겠습니다.
  • 복사

댓글 전체

view.skin.php 에서
<p class="subject">
[<?php if($view['ca_name']){ echo $view['ca_name'] . '/'; } ?><?php echo $view['wr_1']; ?>평형]
<?php echo cut_hangul_last(get_text($view['wr_subject'])); ?>의 객실상세정보
</p>
<div class="photo"><?php if($view['file']['0']['file']){ ?><img id="target" src="<?php echo $view['file']['0']['path'] . '/' . $view['file']['0']['file'] . '.large'; ?>" alt="" /><?php } ?></div>
<div class="thumb">
<?php for($i = 0; $i <= count($view['file']); $i++){ ?>
<?php if($view['file'][$i]['file']){ ?>
<p><img src="<?php echo $view['file'][$i]['path'] . '/' . $view['file'][$i]['file'] . '.small'; ?>" onmouseover="document.getElementById('target').src='<?php echo $view['file'][$i]['path'] . '/' . $view['file'][$i]['file'] . '.large'; ?>';" alt="" /></p>
<?php } ?>
<?php } ?>
</div>

위소스를 테이블을만들어 넣어보세요  아래처럼요..테스트는 해보지 않았습니다^^

<table border="0" width="<?php echo $width; ?>" id="table1" cellspacing="0" cellpadding="0">
<tr>
<td>
<p class="subject">
[<?php if($view['ca_name']){ echo $view['ca_name'] . '/'; } ?><?php echo $view['wr_1']; ?>평형]
<?php echo cut_hangul_last(get_text($view['wr_subject'])); ?>의 객실상세정보
</p>
</td></tr>
<tr>
<td>
<div class="photo"><?php if($view['file']['0']['file']){ ?><img id="target" src="<?php echo $view['file']['0']['path'] . '/' . $view['file']['0']['file'] . '.large'; ?>" alt="" /><?php } ?></div>
</td>
</tr>
<tr>
<td>
<div class="thumb">
<?php for($i = 0; $i <= count($view['file']); $i++){ ?>
<?php if($view['file'][$i]['file']){ ?>
<p><img src="<?php echo $view['file'][$i]['path'] . '/' . $view['file'][$i]['file'] . '.small'; ?>" onmouseover="document.getElementById('target').src='<?php echo $view['file'][$i]['path'] . '/' . $view['file'][$i]['file'] . '.large'; ?>';" alt="" /></p>
<?php } ?>
<?php } ?>
</div>
</td>
</tr>
</table>
<?php for($i = 0; $i <= count($view['file']); $i++){ ?>
<?php if($view['file'][$i]['file']){ ?>
<p><img src="<?php echo $view['file'][$i]['path'] . '/' . $view['file'][$i]['file'] . '.small'; ?>" onmouseover="document.getElementById('target').src='<?php echo $view['file'][$i]['path'] . '/' . $view['file'][$i]['file'] . '.large'; ?>';" alt="" /></p>
<?php } ?>
<?php } ?>

아래걸로^^

<?php for($i = 0; $i <= count($view['file']); $i++){ ?>
<?php if($view['file'][$i]['file']){ ?>
<img src="<?php echo $view['file'][$i]['path'] . '/' . $view['file'][$i]['file'] . '.small'; ?>" onmouseover="document.getElementById('target').src='<?php echo $view['file'][$i]['path'] . '/' . $view['file'][$i]['file'] . '.large'; ?>';" alt="" />
<?php } ?>
<?php } ?>
© SIRSOFT
현재 페이지 제일 처음으로