DITA Open Toolkitは、HTMLに公開するときに、frame="border"やrules="all"などのインラインテーブル属性を自動的に適用します。
セルのCSSスタイルを使用してこの「ルール」属性をオーバーライドする必要があります。IEとChromeで目的の結果を得ることができますが、Firefoxはテーブルに黒一色のグリッド線を配置し、問題を解決することを拒否します。
明らかに、HTMLを編集することはできません。会社のポリシーでは、XSLTを編集しないことです。では、CSSのみを使用してこれらのグリッド線を削除するにはどうすればよいですか。
私はborder-xxxxxxスタイルのさまざまな狡猾な組み合わせを試し、それらに!important宣言を与えても効果がありません。
HTMLは言う...
<table cellpadding="4" cellspacing="0" frame="border" border="1" rules="all">
<thead>
<tr>
<th class="cellrowborder">Type </th>
<th class="cellrowborder">Comment </th>
</tr>
</thead>
<tbody>
<tr>
<td class="cellrowborder">Caution </td>
<td class="cellrowborder">Think twice. </td>
</tr>
<tr>
<td class="cellrowborder">Attention </td>
<td class="cellrowborder">Be careful. </td>
</tr>
<tr>
<td class="cellrowborder">Danger </td>
<td class="cellrowborder" >Be scared. Be very scared. </td>
</tr>
</tbody>
</table>
CSSは言う
table {border: 1px solid black;
font-family: Arial, Helvetica, sans-serif;
border-collapse: collapse;
font-size: 9pt;
margin-top: 1em;
margin-bottom: 1em;
padding: 4px;}
tr {border: none;}
.cellrowborder {border: none;}
したがって、IEで期待するように見えますが、FirefoxではHTMLのframe / border/rules属性を削除しない限りそうではありません。私は本番ではできません。