JSON Sharepoint Online一个符号的不同颜色



(希望有人能帮我解决我的问题我有一个sharepoint专栏,里面有文字和/看起来像这样:布拉布拉我想用粗体或不同颜色的斜线有可能吗?我到处找,但找不到任何解决方案请帮助我一个初学者非常感谢您抽出时间Peggy

请使用以下JSON格式:

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
"elmType": "div",
"txtContent": "@currentField",
"style": {
"background-color": "=if(Number(@currentField) == 0, '', if(@currentField >= @now + 2592000000, '#AFF8C9', if(@currentField >= @now + 86400000, '#EEBB2F', if(@currentField <= @now, '#F06C47',''))))",
"font-weight": "bold" 
}
}

参考文献:

使用列格式自定义SharePoint
CSS字体属性

最新更新