我有一个与 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>
我期待看到没有边界线的表格,因为有属性 frame="topbot"。据我所知,该属性删除了表格上的所有边框线,除了顶线和底线。但结果有所有边界线。
那么,哪个部分是错误的?为什么 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>
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句