用简单的水平线拆分特定列 [英] Splitting a particular column with a simple horizontal line

查看:15
本文介绍了用简单的水平线拆分特定列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用一条简单的水平线分割一个特定的列.

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">

首先,我尝试在列中创建另一个表以拆分数据,但它不起作用.<fo:block > 内的 border-bottom 也没有帮助.

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 .

推荐答案

在我上面的评论中,最好的解决方案是更改您的逻辑以应用适当的跨度.以下是一些让您思考的 FO:

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>

结果是:

这篇关于用简单的水平线拆分特定列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆