如何将替代背景颜色作为RTF中的特定颜色

发布于 2025-01-24 16:44:21 字数 503 浏览 4 评论 0原文

在RTF模板中,我希望备用行具有浅绿色,当我使用以下标签时,我将所有的行都带有绿色和文本背景,而不是整个行,而不是整个行 -

  <?if@row:position() mod 2=0?>
<xsl:attribute name="background-color">#e9f7ef</xsl:attribute>
 <?end if?>

我在Oracle Doc中看到以下使用 -

<?if@row:position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">lightgray</xsl:attribute><?end if?>

但是,一旦我添加XDOFO:CTX =“ Incontext”,我就完全没有输出。

如何将其他背景颜色作为特定颜色。

In the RTF template, I want the alternate rows to have a light green color, when I am using the below tag, I am getting all rows with green and text background as green, not the entire row-

  <?if@row:position() mod 2=0?>
<xsl:attribute name="background-color">#e9f7ef</xsl:attribute>
 <?end if?>

I saw in the Oracle doc the below used -

<?if@row:position() mod 2=0?> <xsl:attribute name="background-color" xdofo:ctx="incontext">lightgray</xsl:attribute><?end if?>

but as soon as i add xdofo:ctx="incontext", i do not get any output at all.

How to get alternate background color as a particular color.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

微凉 2025-01-31 16:44:21

它对我有用。确保将其放在字段中,并且该字段位于for-east tag

”

It is working for me. Make sure you are putting it in a field, and the field is within the for-each tag

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文