dedecms列表调用标签及标签随机颜色

时间:2014-11-07
/include/common.func.php
/tag随机颜色
//function getTagStyle() {
//$sizearray = array('10','12'); //自定义字体大小,可根据需要自行修改
//$sizearray2 = array('FE9901','68B338'); //自定义背景颜色
//return 'font-size:'.$sizearray[rand(0,count($sizearray))].'pt;color:#'.dechex(rand(0,255)).dechex(rand(0,196)).dechex(rand(0,255)).';background:#'.$sizearray2[rand(0,count($sizearray2))];
/

相关文章