开发者

Eclipse BIRT - Unnecessary inline style with external CSS when rendering HTML

开发者 https://www.devze.com 2022-12-27 12:05 出处:网络
I am designing a report using external CSS with BIRT 2.5. When BIRT renders the html report, it creates copies of each external style to inline styles (name style_x) in the resulting html.

I am designing a report using external CSS with BIRT 2.5. When BIRT renders the html report, it creates copies of each external style to inline styles (name style_x) in the resulting html.

The report.design contains:

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

The resulting ht开发者_如何学编程ml contains:

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

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

For each reference of my styles, the rendered html elements use both styles usually like this:

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

Is there any way to get rid of the useless inline styles when rendering html?


Something similiar happened to the XLS Output in BIRT 3.7.0, which is apparently fixed in version 3.7.1 RC3.

Google this for more info: http://www.google.de/search?q=birt+duplicate+style

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号