【问题标题】:is there a way of changing the accent of a region's header according to the value of an item?有没有办法根据项目的值改变区域标题的重音?
【发布时间】:2019-05-27 19:20:27
【问题描述】:

我想根据:P4_COLOR 项目的值来设置区域标题的重音/背景颜色。例如,如果:P4_COLOR = blue,则实际区域标题的重音必须为蓝色(即u-color-1)。

我曾尝试在h1 标签内使用html backgroud-color,例如:

<h1 style="background-color:&P4_COLOR.;">Title name</h1>

但结果不等于模板选项。

有什么想法吗?

【问题讨论】:

    标签: oracle-apex oracle-apex-5.1


    【解决方案1】:

    以下 JavaScript 将应用与模板选项相同的内容

    $('#region_static_id').addClass('t-Region--accent1')
    

    或者使用颜色修饰符

    $('#region_static_id .t-Region-header').addClass('u-color-9-bg') 
    

    或者您可以在该区域的 Appearance-CSS 类中提供重音符号作为替换字符串。

    【讨论】:

      猜你喜欢
      • 2018-10-11
      • 1970-01-01
      • 2016-06-27
      • 2020-05-15
      • 1970-01-01
      • 1970-01-01
      • 2022-01-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多