html - 样式标签和
标签在 Jasper 报告中不能一起使用
问题描述
目前,我的 jasper 报告中有一个文本字段,其中包含文本不同部分的多个样式标签。
<textField>
<reportElement x="9" y="2" width="403" height="126"/>
<textElement markup="styled"/>
<textFieldExpression><![CDATA['Hi <style size="32">User</style>How <br> <style size="12">are</style> you? ']]></textFieldExpression>
</textField>
是否有解决方法可以使用样式标记和 html 标记?
解决方案
推荐阅读
- asp.net-core - Serilog 中是否有一个选项可以在运行时更改日志文件参数,就像可以更改 LogLevel 一样?
- 3dsmax - UV 展平贴图上的纹理拉伸(3ds max 2017)
- geoserver - 如何通过 SLD 为一条记录定义集合中对象的样式
- python - 子文件夹中没有名为“第 3 方库”的模块
- azure-data-factory-2 - 如何使用 ADF 数据流将源文件夹结构动态转换为增量表分区?
- jquery - 如何从“查看页面源”检查是否在 wordpress 中添加了 jquery?
- html - 无法更改 FontAwsome 图标颜色
- linux - 如何运行启动脚本文件但隐藏终端的 .desktop 文件?
- postgresql - 如何获取字符串 postgres
- firebase - Microsoft 用户未存储在 Firebase 中