불당썸을 쓰는 최근 리스트 썸네일 스킨인데요 사이즈 수정문제가
본문
불당썸을 쓰는 최근 리스트 썸네일 스킨인데요
img_width와 img_height 아무리 변경을 해도
세로가 너무 긴 사진이 나와서 그렇거든요.
(이게 쇼핑몰 스킨이라서요.)
어떻게 수정할 수 있는 방법이 없을까요?
한 수 가르침을 꾸벅^^_^^;
<?
//if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
//$g4[path]="./mw-builder/bbs/board.php?bo_table=B01";
include_once("_common.php");
include_once("$g4[path]/lib/thumb.lib.php");
$cols = 7; // 이미지 가로갯수 // 이미지 세로 갯수는 메인에서 지정(총 이미지 수)
$img_width = '148'; //썸네일 가로길이
$img_height = '142'; //썸네일 세로길이
$img_quality = '100'; //퀼리티 100이하로 설정
$data_path = $g4[path]."/data/file";
@mkdir($thumb_path, 0707);
@chmod($thumb_path, 0707);
@chmod($thumb_path, 0707);
$col_width = (int)(100 / $cols);
?>
<style type="text/css">
.file-img-t { width:144px; height:180px; border:solid 2px #fff; }
.item_td { padding:10px 0 14px 0; margin:5px 10px 0px 10px; border-bottom:1px dotted #e0e0e0; }
.item_name { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.item_name a { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.title_price { margin:3px; padding-left:3px; color:#FF3300; font-weight:bold; text-align:center; }
.shop { color:#e93100; font-size:11px; font-family:돋움; }
.shop a { color:#e93100; font-size:11px; font-family:돋움; }
</style>
?>
<style type="text/css">
.file-img-t { width:144px; height:180px; border:solid 2px #fff; }
.item_td { padding:10px 0 14px 0; margin:5px 10px 0px 10px; border-bottom:1px dotted #e0e0e0; }
.item_name { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.item_name a { margin:3px; height:32px; font-size:11px; font-family:돋움; text-align:left; }
.title_price { margin:3px; padding-left:3px; color:#FF3300; font-weight:bold; text-align:center; }
.shop { color:#e93100; font-size:11px; font-family:돋움; }
.shop a { color:#e93100; font-size:11px; font-family:돋움; }
</style>
<!-- 최신글 제목 -->
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="164" align="center" valign='top' class="item_td">
<tr>
<? for ($i=0; $i<count($list); $i++) {
if ($i>0 && $i%$cols==0) { echo "</tr><tr><td colspan='$cols' height='$image_h'></td></tr><tr>"; }
?>
<td width="164" align="center" valign='top' class="item_td">
<?
$img = "$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "$latest_skin_path/img/noimage.gif";
if (!$list[$i][wr_id]) $img = "$latest_skin_path/img/noimage.gif";
if (@is_dir($img)) $img = "$latest_skin_path/img/noimage.gif";
?>
<? /* if ($g4[server_time] - strtotime($list[$i][wr_datetime]) > 60*60*24*(30*6)) {
echo "<a href='{$list[$i][wr_9]}' target='_blank'>";
} else {
echo "<a href='{$list[$i][link_href][1]}' target='_blank'>";
} */ ?>
$img = "$g4[path]/data/file/$bo_table/thumb/{$list[$i][wr_id]}";
if (!@file_exists($img)) $img = "$latest_skin_path/img/noimage.gif";
if (!$list[$i][wr_id]) $img = "$latest_skin_path/img/noimage.gif";
if (@is_dir($img)) $img = "$latest_skin_path/img/noimage.gif";
?>
<? /* if ($g4[server_time] - strtotime($list[$i][wr_datetime]) > 60*60*24*(30*6)) {
echo "<a href='{$list[$i][wr_9]}' target='_blank'>";
} else {
echo "<a href='{$list[$i][link_href][1]}' target='_blank'>";
} */ ?>
<a href="javascript:void(0)" onclick="window.open('<?=$list[$i][href]?>','','width=920,height=900,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no')"><img src="<?=$img?>" class="file-img-t" onmouseover="this.style.border='2px solid #000'" onmouseout="this.style.border='solid 2px #fff'" alt="<?=$list[$i][subject]?> - <?=$list[$i][wr_8]?>원"></a>
<!--<a href='<?=$list[$i][href]?>' target="_blank"><img src="<?=$img?>" class="file-img-t" onmouseover="this.style.border='2px solid #000'" onmouseout="this.style.border='solid 2px #fff'" alt="<?=$list[$i][subject]?> - <?=$list[$i][wr_8]?>원"></a>-->
<div style="text-align:left; width:144px; margin-top:5px;">
<span class="shop">
<!--<img src="<?=$latest_skin_path?>/img/list_home_icon.gif" align="top" />-->▶ <a href='<?=$list[$i][href]?>' target="_parent"><?=$list[$i][wr_8]?> <?=$list[$i][wr_9]?> <?=$list[$i][wr_10]?></a></span></div>
<!--<div class="item_name"><a href="<?=$list[$i][href]?>" target="_parent"><?=$list[$i]['subject']?></a></div>-->
<div class="title_price"><?=number_format($list[$i][wr_5])?>만원</div>
<div style="text-align:center; margin-top:5px;">
<!--<table width="92%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left"><a href="<?=$list[$i][link_href][1]?>" target="_blank"><img src="http://www.styledb.com/img/blog_buy_icon.gif" align="absmiddle" border="0" /></a></td>
<td align="right"><a href="<?=$list[$i][href]?>" target="_parent"><img src="http://www.styledb.com/img/blog_re_icon.gif" align="absmiddle" border="0" /></a></td>
</tr>
</table>-->
</div>
</td>
<? } ?>
<tr>
<td align="left"><a href="<?=$list[$i][link_href][1]?>" target="_blank"><img src="http://www.styledb.com/img/blog_buy_icon.gif" align="absmiddle" border="0" /></a></td>
<td align="right"><a href="<?=$list[$i][href]?>" target="_parent"><img src="http://www.styledb.com/img/blog_re_icon.gif" align="absmiddle" border="0" /></a></td>
</tr>
</table>-->
</div>
</td>
<? } ?>
<?
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
$cnt = ($i%$cols);
for ($k=$cnt; $k<$cols && $cnt; $k++) {
echo "<td width=$col_width%> </td>";
}
?>
<? if (count($list) == 0) { echo "<td align=center>게시물이 없습니다.</td>"; } ?>
</tr>
</table>
</tr>
</table>
답변 1
<img src="<?=$img?>" class="file-img-t" onmouseover="this.style.border='2px solid #000'" onmouseout="this.style.border='solid 2px #fff'" alt="<?=$list[$i][subject]?>
class="file-img-t"
css에서 이부분 확인해보세요~~
또는
<img src="<?=$img?>" width="<?=$img_width?>" height="<?=$img_height?>" onmouseover="this.style.border='2px solid #000'" onmouseout="this.style.border='solid 2px #fff'" alt="<?=$list[$i][subject]?>
이렇게 수정해보세요
답변을 작성하시기 전에 로그인 해주세요.