如何删除 dita 中的 table 边界线?

how to remove table border line in dita?

我有一个与 dita 相关的问题。 下面是我在网上搜索到的dita样本。

<body>
    <table frame="topbot">
        <tgroup cols="2">
            <colspec colname="COLSPEC0" colwidth="121*" />
            <colspec colname="COLSPEC1" colwidth="76*" />
            <thead>
                <row>
                    <entry colname="COLSPEC0" valign="top">Animal</entry>
                    <entry colname="COLSPEC1" valign="top">Gestation</entry>
                </row>
            </thead>
            <tbody>
                <row>
                    <entry>Elephant (African and Asian)</entry>
                    <entry>19-22 months</entry>
                </row>
                <row>
                    <entry>Giraffe</entry>
                    <entry>15 months</entry>
                </row>
                <row>
                    <entry>Rhinoceros</entry>
                    <entry>14-16 months</entry>
                </row>
                <row>
                    <entry>Hippopotamus</entry>
                    <entry>7 1/2 months</entry>
                </row>
            </tbody>
        </tgroup>
    </table>
</body>

我期待看到 table 没有边框线,因为有属性 frame="topbot"。据我所知,该属性删除了 table 上的所有边框线,仅顶部和底部线除外。但结果有所有边界线。

那么,哪一部分是错误的?为什么 frame="topbot" 属性不起作用?

谢谢

我解决了这个问题。

它需要如下的 colsep="0" rowsep="0" 属性。

<body>
    <table frame="topbot">
        <tgroup cols="2" colsep="0" rowsep="0">
            <colspec colnum="1" colname="1" colwidth="61*"/>
            <colspec colnum="2" colname="2" colwidth="39*"/>
            <thead>
                <row rowsep="0">
                    <entry colname="1">Animal</entry>
                    <entry colname="2">Gestation</entry>
                </row>
            </thead>
            <tbody>
                <row rowsep="0">
                    <entry colname="1">Elephant (African and Asian)</entry>
                    <entry colname="2">19-22 months</entry>
                </row>
                <row rowsep="0">
                    <entry colname="1">Giraffe</entry>
                    <entry colname="2">15 months</entry>
                </row>
                <row rowsep="0">
                    <entry colname="1">Rhinoceros</entry>
                    <entry colname="2">14-16 months</entry>
                </row>
                <row rowsep="0">
                    <entry colname="1">Hippopotamus</entry>
                    <entry colname="2">7 1/2 months</entry>
                </row>
            </tbody>
        </tgroup>
    </table>
</body>