前台渐变色
image.png
.linear-break{
float: right;
width: 100px;
height:20px;
margin-right: 10px;
border-radius: 5px;
background: -webkit-linear-gradient(left,rgb(0, 200, 0),rgb(30,144,255),rgb(255, 0, 0)) no-repeat;
}
后台渐变色方法 step为分多少个颜色
image.png
//查看字符串是否在数组中(双色渐变)
public static List getStepColorsByCondition(int[] beginColor, int[] endColor, int step) {
List list = new ArrayList();
list.add(intAryToString(beginColor));
if(step > 1){
step = step - 1;
}else{
return list;
}