<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <style type="text/css"> table{ width:780px; margin:auto; border-collapse:collapse; /*塌陷*/ } tr{ height:30px; } table,td{ border:#000 solid 1px; } </style> </head> <body> <table> <?php for($i=1; $i<=9; $i++) { echo '<tr>'; for($j=1; $j<=$i; $j++) { echo "<td>{$j}*{$i}=".($j*$i),'</td>'; } echo '</tr>'; } ?> </table> </body> </html>
PHP 九九乘法表
猜你喜欢
转载自blog.csdn.net/qq_36192232/article/details/80957353
今日推荐
周排行