이미지 사이에 한줄씩 떼고 가운데 정렬? 정보
이미지 사이에 한줄씩 떼고 가운데 정렬?본문
이미지를 업로드하면
왼쪽에 줄줄이 붙어 나오는데
가운데 정렬 되고 이미지 사이에 한줄씩 떼려면 어떻게 해야 할까요?
// 파일 출력
ob_start();
for ($i=0; $i<=$view[file][count]; $i++) {
if ($view[file][$i][view]) {
if ($board[bo_image_width] < $view[file][$i][image_width]) { // 이미지 크기 조절
$img_width = $board[bo_image_width];
} else {
$img_width = $view[file][$i][image_width];
}
$view[file][$i][view] = str_replace("<img", "<img width=\"{$img_width}\"", $view[file][$i][view]);
$view[file][$i][view] = str_replace("onclick='image_window(this);'", "onclick='mw_image_window(this, {$view[file][$i][image_width]}, {$view[file][$i][image_height]});'", $view[file][$i][view]);
$view[file][$i][view] = str_replace("onclick=image_window(this);", "onclick='mw_image_window(this, {$view[file][$i][image_width]}, {$view[file][$i][image_height]});'", $view[file][$i][view]); // 제나빌더용 (그누보드 원본수정으로 인해 따옴표' 가 없음;)
echo $view[file][$i][view] . "<br/><br/>";
}
}
왼쪽에 줄줄이 붙어 나오는데
가운데 정렬 되고 이미지 사이에 한줄씩 떼려면 어떻게 해야 할까요?
// 파일 출력
ob_start();
for ($i=0; $i<=$view[file][count]; $i++) {
if ($view[file][$i][view]) {
if ($board[bo_image_width] < $view[file][$i][image_width]) { // 이미지 크기 조절
$img_width = $board[bo_image_width];
} else {
$img_width = $view[file][$i][image_width];
}
$view[file][$i][view] = str_replace("<img", "<img width=\"{$img_width}\"", $view[file][$i][view]);
$view[file][$i][view] = str_replace("onclick='image_window(this);'", "onclick='mw_image_window(this, {$view[file][$i][image_width]}, {$view[file][$i][image_height]});'", $view[file][$i][view]);
$view[file][$i][view] = str_replace("onclick=image_window(this);", "onclick='mw_image_window(this, {$view[file][$i][image_width]}, {$view[file][$i][image_height]});'", $view[file][$i][view]); // 제나빌더용 (그누보드 원본수정으로 인해 따옴표' 가 없음;)
echo $view[file][$i][view] . "<br/><br/>";
}
}
댓글 전체

img 태그 안에 hspace 값을 주세요
적용된 태그를 알려주시면 안될까요 ㅠㅠ 초보라.... ㅠㅠ