博客列表 >响应式九九乘法口诀

响应式九九乘法口诀

秦小凡的博客
秦小凡的博客原创
2017年12月27日 00:07:11571浏览

<!doctype html>
<html lang="en">
<head>
   <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
   <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
   <title>Document</title>
</head>
<body>
<div class="table-responsive">
<table class="table  table-bordered">
   <?php
   echo '<caption>响应式的九九乘法口诀</caption>';
for ($a=1;$a<=9;++$a){
echo'<tr>';
for ($b=1;$b<=$a;++$b){
echo"<td>{$b}*{$a}=".$a*$b.'</td>';
       }
echo'</tr>';
   }

?>
</table>
</div>
</body>
</html>

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议