살려주세요 ㅠㅠ
게시판을 수정중인데 이미지배열 때문에 죽겠씁니다.
[ 0 ][ 1 ][ 2 ][ 3 ][ 4 ][ 5 ][ 6 ][ 7 ][ 8 ][ 9 ][ 10 ][ 11 ][ 12 ]
현재 이런 이미지배열인데 이걸
겔러리형식처럼 밑에 처럼 바꾸고 싶습니다.
[ 0 ][ 1 ][ 2 ][ 3 ]<br>
[ 4 ][ 5 ][ 6 ][ 7 ]<br>
[ 8 ][ 9 ][ 10 ][ 11 ]<br>
[ 12 ]
$pre=$total-(($page-1)*$admin[2]);
$last=$pre-$admin[2];
if($last<0) { $last=0;}
for($i=$pre ; $i>$last ; $i--)
{
if($i%5==1) { echo "<br>"; } <-- 이걸 누군가가 이거 알려줬는데 해봣는데 잘안되네요
소스좀 고쳐주세요 ㅜㅜ
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 6개
<div style="float:left;width:100px;height:80px;margin:5px;">내용1</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용2</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용3</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용4</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용5</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용6</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용7</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용8</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용9</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용10</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용11</div>
<div style="float:left;width:100px;height:80px;margin:5px;">내용12</div>
</div>
이런식으로
테두리 정하시고
그안에 float:left로 <br>없이 불러오시면
지정한 폭안에서 자동으로 내려가서 나열됩니다.
찌까니님까 해볼께요
쵝오~~~~~~~