아래 가로 1200 세로 600을 가로세로 100%로 만들고 싶습니다. 모바일에 작업하는거라서요
직접 코드에 $thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], 100%, 100%);
이렇게 작성하니 에러가 나서요 어떻게 작업해야하나요
아래는 원문입니다.
if ($options) list($width, $height, $wrap_width, $content_length) = explode(',', $options);
if (!$width) $width = 1200;
if (!$height) $height = 600;
if (!$content_length) $content_length = 120;
<?php
for ($i=0; $i<count($list); $i++) {
$thumb = get_list_thumbnail($board['bo_table'], $list[$i]['wr_id'], $width, $height);
$linker = "<div style='font-size:1.2em'>".cut_str(get_text(strip_tags($list[$i]['wr_content'])),40)."</div>";
if ($is_admin) {
$linker .= "<br/><a href='".$list[$i]['href']."' class='btn btn-skin btn-slide'>".$list[$i]['subject']."</a>";
}
?>
답변 2개
답변을 작성하려면 로그인이 필요합니다.