테스트 사이트 - 개발 중인 베타 버전입니다

이미지를 100%로 바꾸려고 합니다. 채택완료

낭만푸우 10년 전 조회 3,583

</p><p><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>
 <? } ?></p><p> <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>​</p><p>

 

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

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

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

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
P
10년 전

<img 앞에 "를 붙여주셔야합니다.

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

낭만푸우
10년 전
감사합니다.^^

댓글을 작성하려면 로그인이 필요합니다.

10년 전

질문의 문법이 잘못되었었네요.. ㅠㅠ

그래도 채택합니다... 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인