我想我的XSL-FO文档中创建这种背景:如何为一行中的3个单元格创建增加的背景颜色?
我模糊了敏感信息,但希望它仍然不够明显,这应该是一个灰色的颜色变从细胞到细胞增加。
这是我的代码背后:
<!-- table header -->
<fo:table table-layout="fixed" width="100%" background-color="#FFFFFF">
<fo:table-body>
<fo:table-row>
<fo:table-cell margin-left="55pt" padding-after="10pt">
<fo:block-container xsl:use-attribute-sets="boldtext">
<fo:block>
1st column header
</fo:block>
</fo:block-container>
</fo:table-cell>
<fo:table-cell padding-left="30pt" padding-after="10pt">
<fo:block-container xsl:use-attribute-sets="boldtext">
<fo:block>
2nd column header
</fo:block>
</fo:block-container>
</fo:table-cell>
<fo:table-cell padding-left="15pt" padding-after="10pt">
<fo:block-container xsl:use-attribute-sets="boldtext">
<fo:block>
3rd column header
</fo:block>
</fo:block-container>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
创建一个三角形并在表格后面使用的SVG。如果你想让它像那样破碎,请在中间的单元格左右两边使用白色边框。 –