Blogger Information
Blog 7
fans 0
comment 0
visits 5172
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
php--9x9乘法表
phpcn_u68463的博客
Original
836 people have browsed it

<?php
   header('Content-Type: text/html; charset=utf-8');

   echo '<table border="1" width="600" bgcolor="#fff8dc" text-algin="center">';
   echo '<h2 style="margin:0;padding:0;width:715px;height: 50px;background: lightcyan; text-align: center; color:#ff5a5a;font-size: 30px; font-weight: 200;">9x9乘法表</h2>';
//    echo '<pre>';
   for($q=1; $q<=9; $q++){

       echo "<tr style='border: none'>";
       for($w=1; $w<=$q; $w++){
           echo "<td style='border:none;padding:5px 10px; border-bottom:1px solid red'>";
           echo "{$q}x{$w}=".($q*$w)."  ";
           echo "</td>";
       }
       echo "</tr>";
   }
   echo "<br>";
   echo '</table>';


==================运行结果===========================


2017-12-27_180021.png

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post