Eclipse 我可以在Birt报告中使用css3吗?
我想在Birt报告中使用CSS3。但它显示了CSS2的问题Eclipse 我可以在Birt报告中使用css3吗?,eclipse,css,report,birt,Eclipse,Css,Report,Birt,我想在Birt报告中使用CSS3。但它显示了CSS2的问题 A BIRT exception occurred. Plug-in Provider:Eclipse BIRT Project Plug-in Name:BIRT Model Plug-in ID:org.eclipse.birt.report.model Version:4.3.1.v201308301349 Error Code:Error.StyleSheetException.SYNTAX_ERROR
A BIRT exception occurred.
Plug-in Provider:Eclipse BIRT Project
Plug-in Name:BIRT Model
Plug-in ID:org.eclipse.birt.report.model
Version:4.3.1.v201308301349
Error Code:Error.StyleSheetException.SYNTAX_ERROR
Error Message:There are some syntax errors inconsistent with CSS2.
那么,有谁能帮助我,比如如何在报告中使用CSS3文件呢。是否有任何插件或某些步骤,然后请告诉我。您只能使用html格式的css3,方法是在viewtime中包含css文件。但它会被pdf和其他格式忽略 例如,我们将在viewtime中包含这个jquery移动主题:
//ajax.googleapis.com/ajax/libs/jquerymobile/1.4.2/jquery.mobile.min.css
要测试此示例,请在报告中添加一个BIRT文本元素,将type设置为HTML并包含以下片段:
<button data-icon="star" data-theme="a" data-form="ui-btn-up-a" class=" ui-btn ui-btn-a ui-icon-star ui-btn-icon-left ui-shadow ui-corner-all">Button</button>
按钮
运行报告,您将看到一个很棒的jqueryMobile,比如css3按钮 您还可以使用head.js在报告的clientScripts中加载外部文件。例如,在报表的clientScripts>clientInitialize事件中,添加:
head.js("http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js",
"http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css");
在XML源代码中,这是下面代码中的最后一行
<?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.23" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 4.4.0.v20150206-1039 Build <4.2.3.v20150206-1039></property>
<property name="units">in</property>
<method name="clientInitialize"><![CDATA[head.js("http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js", "http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css");
]]></method>
Eclipse BIRT Designer版本4.4.0.v20150206-1039构建4.2.3.v20150206-1039>
在里面
通过在运行时包含css文件,您只能以html格式使用css3。但它将被pdf&other忽略formats@Dominique如何在运行时包含css3?