suchen

Heim  >  Fragen und Antworten  >  Hauptteil

php $s wird nach der if-Anweisung geschrieben

<?php

$s=0;

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

while( $s<100){

if($ s%10==0){

                                                                                                                                                            .

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

$s++;

0

G°2133 Tage vor1156

Antworte allen(1)Ich werde antworten

  • Libra

    Libra2019-04-27 17:15:51

     echo '<tr>'.$s.'</tr>';的原因,因为你每个$s%==0后直接在tr里面输出了那个值。而tr输出内容会直接表现在table上方。正常的话一般会在<tr>   套 <td>标签。



    Antwort
    0
  • StornierenAntwort