我正在使用XSL文檔來創建PDF。有一些樣式定義爲內聯。我想將它們移動到一個外部CSS文件中,但我已經死了。在XSL-FO中使用外部CSS
這裏是我的代碼:
<fo:table border-bottom="solid 2pt #409C94" border-top="solid 2pt #409C94" margin-bottom=".1in" background-color="#E9E9E9" text-align="center" table-layout="fixed" width="100%" font-size="9pt">
<fo:table-column column-width="proportional-column-width(100)"/>
<fo:table-body width="100%" table-layout="fixed">
<fo:table-row>
<fo:table-cell text-align="center" padding-top=".5mm" padding-bottom=".5mm">
<fo:block>Some text is placed here.</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
我要的是刪除該文檔都是造型標籤,即:
border-bottom="solid 2pt #409C94"
border-top="solid 2pt #409C94"
margin-bottom=".1in"
background-color="#E9E9E9"
text-align="center"
table-layout="fixed"
width="100%" font-size="9pt"
我想將它們移到一個CSS文件但任何更好的方法都會受到歡迎。
謝謝。
謝謝丹尼爾。你的解決方案給了我應該去的方向,並基於此,我搜索了一些例子。我將介紹回覆此線程的解決方案。 – Farhan