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

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

QA

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

본문


<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%로 강제로 바꾸어 입력하려면 어떻게 수정을 해야 할까요?

 

 

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
전체 24
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT