µ±Ç°Î»ÖãºLinux½Ì³Ì - Php - Ò»¸ö»ñÈ¡Ëæ»úÑÕÉ«Éú³ÉÔÚÇøÓò
Èç¹ûÄãÏë×ö¸öÑÕÉ«ÁбíÊÇ·ñÔÚÍ·Í´ÄÇô¶àÑÕÉ«ÈçºÎ²ÅÄÜÁÐÍꣿ

Èç¹ûÄãÐèÒªÈÃÓû§Ñ¡ÔñÑÕÉ«£¬µ«ÓÖÅÂû¿¼Âǵ½ÑÕÉ«´úÂëÔõô°ì£¿

ÓÃrgb(255,255,255)»¹ÊÇÓÃ#FFFFFF»¹ÊÇÓÃ0x666666ºÃÄØ£¿

½ñÌìÎÒÒ²Åöµ½ÁËÕâ¸öÎÊÌ⣬˳±ã¾ÍÏëÁ˸ö·½·¨£¬¼ÈÈ»Ïë³öÀ´ÁËÄÇ´ó¼Ò¾ÍÀ´¹²ÏíÒ»ÏÂ~£¬

Code:
____________________________________
<select>
<?
for($int_a=0;$int_a<16;$int_a++){//ÒªÏÔʾ<option>¸öÊý
    for($a=0;$a<6;$a++){    //²ÉÓÃ#FFFFFF·½·¨£¬
       $d.=dechex(rand(0,15));//ÀÛ¼ÓËæ»úµÄÊý¾Ý--dechex()½«Ê®½øÖƸÄΪʮÁù½øÖÆ
    }
   print "<option value=\"#$d\" style=\"background-color:#$d\">#$d</option>\n";//´òÓ¡»ñµÃÑÕÉ«´úÂë
    unset($d);//ɾ³ýÑÕÉ«´úÂë
}?>
</select>
¸½¼ÓÒ»¸ö
<input type=button onclick="window.location.reload()" value="Ë¢ÐÂÒ³ÃæÖØлñµÃеÄÑÕÉ«">


OK£¬
Õ¾µãµ¼º½
ÔÞÖúÉÌÁ´½Ó