찾다

 >  Q&A  >  본문

echo '</tr>'; 두 출력에서 ​​줄바꿈이 반복되지 않을까요? 한번 시도해 봤는데 하나를 삭제해도 문제 없이 정상적으로 출력이 되네요.

请问

<?php

echo '<table width="800" border="1">';

$i=0;while($i<10){    

echo '< tr>';$j=0;    

while($j<10){

echo '<td>'.$j.'</td>';        

$j++;    }  

echo '</tr>'; $i++;}

echo '</table>';

?>

手机用户1616724750手机用户16167247501133일 전932

모든 응답(3)나는 대답할 것이다

  • autoload

    autoload2021-12-30 16:16:39

    echo '<table width="800" border="1">';
    $i=0;   
    while($i<10){    
          echo '<tr>';
          $j=0;    
          while($j<10){
             echo '<td>'.$j.'</td>';        
             $j++;        
          }  
          echo '</tr>'; 
          $i++;
          }
    echo '</table>';

    <tr></tr>는 html

    의 테이블 태그인 태그 쌍입니다.

    회신하다
    0
  • 手机用户1616724750

    아, 미안, 난 그걸 몰랐어, 난 항상 그런 줄 알았어

    手机用户1616724750 · 2021-12-30 16:22:40
  • 취소회신하다