enable_css_custom_properties属性

enable_css_custom_properties属性

使用 CSS 自定义属性优化 html 的输出。例如,对于同一幅 base64 图片出现多次的情况,使用自定义属性可以使图片数据仅保存一次,从而提升最终 html 的性能。 默认值为 false。

定义:

@property
def enable_css_custom_properties(self):
    ...
@enable_css_custom_properties.setter
def enable_css_custom_properties(self, value):
    ...

也可以看看