Css SharePoint列表视图JSON格式悬停颜色

Css SharePoint列表视图JSON格式悬停颜色,css,sharepoint,sharepoint-list,Css,Sharepoint,Sharepoint List,如何更改SharePoint列表视图中超链接的悬停颜色 下面是列表视图的JSON 谢谢大家! { "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json", "hideSelection": true, "hideColumnHeader": true, "rowFormatter": { "elmType": "a", "txtContent":

如何更改SharePoint列表视图中超链接的悬停颜色

下面是列表视图的JSON

谢谢大家!

{
 "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
 "hideSelection": true,
 "hideColumnHeader": true,
 "rowFormatter": {
     "elmType": "a",
     "txtContent": "@currentField",
     "attributes": {
        "class": "sp-field-fontSize14",
        "href": "[$Link]"
     },
     "style": {
        "color": "#8F7034",
        "text-decoration": "none",
        "width": "300px",
        "min-width": "200px",
        "min-height":"1em",
        "height":"1em",
        "white-space": "nowrap",
        "padding-left": "=if(indexOf(@currentField, ' ') == 1, '', if(indexOf(@currentField, ' ') == 3, '20px', '40px'))"  
     }
 }
}
使用
ms bgColor---hover
更改悬停颜色

例如:

attributes": {
      "class": "sp-field-fontSize14 ms-bgColor-red--hover",
      "href": "[$Link]"
    },

如何使用自定义颜色?我想使用#8F7034作为文本颜色,另一种自定义文本颜色用于悬停。谢谢实际上
msfontcolor我需要的是主要的msfontcolor红色--hover
。再次感谢,你的回答让我走上了正确的轨道