【问题标题】:APEX 20.1 - Styling Column Group Heading of Interactive GridAPEX 20.1 - 交互式网格的样式列组标题
【发布时间】:2021-02-17 15:36:52
【问题描述】:

有没有人举例说明如何在交互式网格中设置列标题的样式?

我希望 4 个不同列组中的每一个的列标题具有不同的背景颜色,以使组更易于区分:

似乎没有一种方法可以通过开发人员界面轻松地将样式分配给列组。所以,我尝试使用 TH ID:

#R141502556723241100_ig_grid_vc_cur {
    background-color: #242d45;
    color: #ffffff;
}

但不是更改术语/元素 TH 的背景颜色,而是更改单击的任何元素的背景颜色。

【问题讨论】:

    标签: css grid styles interactive oracle-apex-20.1


    【解决方案1】:

    首先给你的IG添加一个静态ID。

    • 静态 ID:my-static-id

    那么就可以使用下面的css sn -p:

    
    /*
    
    where the value between the quotation marks ("") is the index of the column heading
    
    */
    #my-static-id  th[data-idx="0"] { 
      background-color: rebeccapurple;
    }
    
    #my-static-id  th[data-idx="1"] {
      background-color: green;
    }
    
    

    结果:

    【讨论】:

    • 嗨,我也在使用列组。如果我只想为列组而不是列标题着色怎么办?
    猜你喜欢
    • 2023-04-07
    • 1970-01-01
    • 2020-02-22
    • 1970-01-01
    • 2022-10-05
    • 2019-01-26
    • 1970-01-01
    • 1970-01-01
    • 2023-01-11
    相关资源
    最近更新 更多