目前的時間: 2024/11/21 19:37:08
<?php for ( $i=0; $i<=5; $i++ ){ $r = $i*51; $rr = 255 - $r; for ( $j=0; $j<=5; $j++ ){ $g = $j*51; $gg = 255 - $g; echo "<tr>"; for ( $k=0; $k<=5; $k++ ){ $b = $k*51; $bb = 255 - $b; echo "<td style='background-color: rgb($r,$g,$b); color: rgb($rr,$gg,$bb)'>rgb($r,$g,$b)</td>\n"; } echo "</tr>"; } }