easyexcel icon indicating copy to clipboard operation
easyexcel copied to clipboard

如何单元格用自定义颜色值

Open lxychinese opened this issue 1 year ago • 1 comments

官方用法
style.setFillForegroundColor(IndexedColors.YELLOW.getIndex()); 如果用自定义的颜色值 而不是官方定义的那些色值 比如我用个颜色值#F5F7FA 如何应用 在单元格上

lxychinese avatar Oct 18 '24 13:10 lxychinese

建议把Hex16进制颜色值转换为RGB颜色值,参考这个 https://github.com/alibaba/easyexcel/issues/3866 设置颜色样式。

LSL1618 avatar Nov 22 '24 02:11 LSL1618