我需要设置页眉中所有内容的margin-left和margin-right(xsl-region-before).我试图将属性添加到 fo:block这反过来包含所有标题内容.然而,边际由子块继承,这不是我想要的. 有没有办法在没有继承
有没有办法在没有继承的情况下设置保证金?
我找到了一个解决方法:在内部块中将边距设置为负数:<fo:block margin-left="10mm" margin-right="10mm">
<fo:table>
<fo:table-column column-width="100%" />
<fo:table-body>
<fo:table-row>
<fo:table-cell text-align="left">
<fo:block margin-left="-10mm" margin-right="-10mm">
Some text
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
