<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> td{ border: 3px solid deeppink; } </style> </head> <body> <?php echo "<table>"; for($i = 1; $i <= 9 ; $i++){ echo "<tr>"; for($j = 1; $j <= $i ; $j++) { echo "<td>"; echo $j."*".$i."=".($i * $j); echo "</td>"; } echo "</tr>"; } echo "</table>"; ?> </body> </html>
乘法表.php
最新推荐文章于 2022-09-01 21:23:50 发布