Home > php教程 > php手册 > body text

一个获取随机颜色生成在区域

WBOY
Release: 2016-06-21 09:12:29
Original
1077 people have browsed it

随机

如果你想做个颜色列表是否在头痛那么多颜色如何才能列完?

如果你需要让用户选择颜色,但又怕没考虑到颜色代码怎么办?

用rgb(255,255,255)还是用#FFFFFF还是用0x666666好呢?

今天我也碰到了这个问题,顺便就想了个方法,既然想出来了那大家就来共享一下~,

Code:
____________________________________

附加一个



OK,这样你的颜色就是千变万化了,不用担心颜色列不完了~,呵呵



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template