标签:table nbsp php function border span ddd ffffff order
<?php
//$h 代表行,$l 代表列
function table_fn($h,$l){
echo "<table border=1px>";
for($i=0;$i<$h;$i++){
$bgcolor = $i%2 == 0 ? "#FFFFFF" : "#DDDDDD";
echo "<tr bgcolor=".$bgcolor.">";
for($e=0;$e<$l;$e++){
echo "<td>";
echo $e+$i*10;
echo "</td>";
}
echo "</tr>";
}
echo "</table>";
}
?>
标签:table nbsp php function border span ddd ffffff order
原文地址:http://www.cnblogs.com/8000cabbage/p/6253986.html