1

我正在使用带有 BIRT 2.5 的外部 CSS 设计报告。当 BIRT 呈现 html 报告时,它会在生成的 html 中创建每个外部样式到内联样式(名称 style_x)的副本。

report.design 包含:

<list-property name="cssStyleSheets">
<structure>
<property name="fileName">… mycss.css</property>
<property name="externalCssURI"> http://.../mycss.css </property>
</structure>
</list-property>

生成的 html 包含:

<style type="text/css">
.style_0 {…}
.style_1 {…}
….

</style>
<link rel="stylesheet" type="text/css" href="http://.../mycss.css"></link>

对于我的样式的每个引用,呈现的 html 元素通常使用这两种样式:

<div class="style_x myclass" …. > …. </div>

渲染html时有没有办法摆脱无用的内联样式?

4

1 回答 1

0

BIRT 3.7.0中的 XLS 输出发生了类似的事情,这显然已在 3.7.1 RC3 版本中修复。

谷歌这个以获得更多信息:http ://www.google.de/search?q=birt+duplicate+style

于 2011-09-22T13:23:25.760 回答