问题
I'm using this nice tool pod to generate ODT-Files in my django-application. Is there a way to change the backgroundcolor of a table-cell based on its value?
回答1:
Sure, in LibreOffice its easily found on the menu.
Format -> Conditional Formatting.
回答2:
You could generate a tag for the color in your django application and then have a post process LibreOffic Writer macro going through the tags and change the background color of the cells accordingly.
来源:https://stackoverflow.com/questions/16987806/changing-backgroundcolor-of-a-table-cell-based-on-its-value