gpt4 book ai didi

rtf - RTF 文档中的单元格阴影

转载 作者:行者123 更新时间:2023-12-04 16:11:09 29 4
gpt4 key购买 nike

有谁知道将背景颜色应用于表格单元格的 rtf 标签?

我知道表结构:

{\rtf1\ansi\deff0
\trowd
\clshdng10000\cellx1000
\clshdng10000\cellx2000
\clshdng10000\cellx3000
cell 1\intbl\cell
cell 2\intbl\cell
cell 3\intbl\cell
\row}

但我不知道如何应用阴影。

更新:我添加了单元格阴影,但仍然无法设置阴影颜色

最佳答案

我设法得到了解决方案:

{\rtf1\ansi\deff0
{\colortbl;\red188\green230\blue138;}<!--define a color table -->
\trowd
\cellx1000
\clcbpat1\cellx2000 <!- \clcbpat1 = set background color -->
\cellx3000
cell 1\intbl\cell
cell 2\intbl\cell
cell 3\intbl\cell
\row
}

您可以将多种颜色串在一起,例如:
{\colortbl;\red188\green230\blue138;\red108\green030\blue038;}

要使用它,您将调用: \clcbpat1\clcbpat2

关于rtf - RTF 文档中的单元格阴影,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6117181/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com