兼容颜色值是字符串