Splitting a particular column with a simple horizontal line

大兔子大兔子 提交于 2019-12-10 12:07:13

问题


I am trying to split a particular column with a simple horizontal line .

<fo:table>
<fo:table-body>
<fo:table-row>
    <fo:table-cell border-color="white" padding-top="5px" padding-bottom="5px"> 
    <fo:block>
    <xsl:choose>
    <xsl:when test=>
    <fo:block border-bottom-width="0.1mm" border-bottom-style="solid" border-bottom-color="black" font-weight="bold">

First I tried to make another table in a column for splitting of data but its not working. border-bottom inside <fo:block > is also not helping .

The line doesn't seem to properly split the column .How can I do this .


回答1:


On my comment above, the best solution is change your logic to apply appropriate spanning. Here is some FO to get you thinking:

        <fo:table font-size="18pt">
            <fo:table-body>
                <fo:table-row>
                    <fo:table-cell number-rows-spanned="2" border="1pt solid black" padding="3pt">
                        <fo:block>I am all in one spanned cell</fo:block>
                    </fo:table-cell>
                    <fo:table-cell  border="1pt solid black"  padding="3pt">
                        <fo:block>I am in top half of the cell</fo:block>
                    </fo:table-cell>
                    <fo:table-cell number-rows-spanned="2"  border="1pt solid black"  padding="3pt">
                        <fo:block>I am all in one spanned cell</fo:block>
                    </fo:table-cell>
                </fo:table-row>
                <fo:table-row>
                    <fo:table-cell border="1pt solid black"  padding="3pt">
                        <fo:block>I am in bottom half of the cell</fo:block>
                    </fo:table-cell>
                </fo:table-row>
            </fo:table-body>
        </fo:table>

The result is:



来源:https://stackoverflow.com/questions/33629831/splitting-a-particular-column-with-a-simple-horizontal-line

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!