최신글 질문좀 드립니다
본문
최실글 질문좀 드리겠습니다
크롬에서는 정상출력되는데 익스만 가면 저렇게 나오는데 왜그런걸까요
<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
add_stylesheet('<link rel="stylesheet" href="'.$latest_skin_url.'/style.css">', 0);
$bo_gallery_width = 135;
$bo_gallery_height = 75;
$bo_gallery_height2 = 75;
?>
<!-- <?php echo $bo_subject; ?> 최신글 시작 { -->
<div class="ilt">
<strong class="ilt_title"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><?php echo $bo_subject; ?></a></strong>
<ul>
<?php for ($i=0; $i<count($list); $i++) { ?>
<?php
echo "<li style=\"width:".$bo_gallery_width."px;height:".$bo_gallery_height2."px\" class=\"igal\"><a href=\"".$list[$i]['href']."\">";
$thumb = get_list_thumbnail($bo_table, $list[$i]['wr_id'], $bo_gallery_width, $bo_gallery_height);
if($thumb['src']) {
$img_content = '<img src="'.$thumb['src'].'" alt="'.$thumb['alt'].'" width="'.$bo_gallery_width.'" height="'.$bo_gallery_height.'" style="border:1px solid #ddd">';
} else {
$img_content = '<span style="width:'.$bo_gallery_width.'px;height:'.$bo_gallery_height.'px" class="noimg">no image</span>';
}
echo $img_content;
echo "</a>";
echo "<div style=\"height:20px;padding-top:5px\">";
//echo $list[$i]['icon_reply']." ";
echo "<a href=\"".$list[$i]['href']."\">";
if ($list[$i]['is_notice'])
echo "<strong>".$list[$i]['subject']."</strong>";
else
if ($list[$i]['comment_cnt'])
echo $list[$i]['comment_cnt'];
echo "</a>";
// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }
//if (isset($list[$i]['icon_new'])) echo " " . $list[$i]['icon_new'];
//if (isset($list[$i]['icon_hot'])) echo " " . $list[$i]['icon_hot'];
//if (isset($list[$i]['icon_file'])) echo " " . $list[$i]['icon_file'];
//if (isset($list[$i]['icon_link'])) echo " " . $list[$i]['icon_link'];
//if (isset($list[$i]['icon_secret'])) echo " " . $list[$i]['icon_secret'];
echo "</div>";
echo "</li>";
?>
<?php } ?>
<?php if (count($list) == 0) { //게시물이 없을 때 ?>
<li>게시물이 없습니다.</li>
<?php } ?>
</ul>
<div class="ilt_more"><a href="<?php echo G5_BBS_URL ?>/board.php?bo_table=<?php echo $bo_table ?>"><span class="sound_only"><?php echo $bo_subject ?></span><img src="img/botton01.png"></a></div>
</div>
<!-- } <?php echo $bo_subject; ?> 최신글 끝 -->
1번 익스에서 볼시 최신글
2번 크롬에서볼시 최신글
!-->
답변 5
css 부분을 크롬에서는 반응하는데 익스에서는 반응하지 않는 이미지 css인듯 한데 그 부분을 확인해 보셔야 할듯 합니다.
사이트 url을 알려주시면 빠른 답변 가능할 것 같습니다~
보니까 .ilt에 해당하는 img 테그에 대한 크기가 css에서 인식이 되지 않아 보이지 않는 부분으로 보입니다.
.ilt img {width:가로사이즈;height:세로사이즈}
이렇게 기입해서 css에 반영해 보세요
!-->익스 8에서만 작동을 안하네요 ..
답변을 작성하시기 전에 로그인 해주세요.