이미지를 100%로 바꾸려고 합니다.

이미지를 100%로 바꾸려고 합니다.

QA

이미지를 100%로 바꾸려고 합니다.

답변 2

본문


<div id="m_header" style='border:0px solid blue;'><div class="m_wrap">
 </div>
 <div id="slide-runner">
 <? for ($i=0; $i<count($list); $i++) { 
  $imagepath = $list[$i][file][0][path]."/".$list[$i][file][0][file];
  $noimage = $latest_skin_path."/img/noimage.gif";
  $thumfile = <img src='$thumfile' width='$img_width' height='$img_height' class=image > ";
  //$image = "<img src='$thumfile' width='$img_width' height='$img_height' class=image > ";
 ?>
 <a href="<?=set_http($list[$i][wr_link1])?>" style='color:#fff;border:0px;' target='_blank'><img id="slide-img-<?=($i+1)?>" src="<?=$thumfile?>" alt="<?=$list[$i][wr_subject]?>" /></a>
 <? } ?>
 <div id="slide-controls">
  <p id="slide-client" class="text"><strong></strong><span></span></p>
  <p id="slide-desc" class="text"></p>
  <p id="slide-nav"></p>
 </div>
</div>
<!--content featured gallery here -->
 </div>​

 

이 구문에서  7열의 $img_width 의 값을 %로 변경하고 싶은데 에러가 발생합니다.


  $thumfile = <img src='$thumfile' width='100%' height='$img_height' class=image > ";

만약 100%로 강제로 바꾸어 입력하려면 어떻게 수정을 해야 할까요?

 

 

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 124,107
© SIRSOFT
현재 페이지 제일 처음으로