【发布时间】:2014-03-04 11:44:31
【问题描述】:
SmartClient 版本:v9.0p_2014-02-13/EVAL 部署
火狐26.0
将表单导出为 PDF 时,SelectItem 的 printTextBoxStyle 将被忽略。
我有一个包含 TextItem、SelectItem 和 TextAreaItem 的表单。
对于每个 FormItem,我调用
formItem.setPrintTextBoxStyle("printTextBoxStyle")
这个“printTextBoxStyle”隐藏了文本框的边框。
/* PrintStyle.css */
.printTextBoxStyle {
border-style: none;
}
PrintStyle.css 是在我的 server.properties 中定义的额外样式表。
在导出的 PDF 中,样式应用于 TextItem 和 TextAreaItem,但 SelectItem 始终仍然有边框。
我尝试将我的 .printTextBoxStyle 更改为更明显的测试,例如颜色:绿色。当我这样做时,TextItem 和 TextAreaItem 的文本框内的文本颜色变为绿色。 SelectItem 文本框的样式始终保持不变——带有边框的黑色文本。我尝试过的所有 CSS 属性看起来总是一样的。
这让我相信 SelectItems 在打印样式方面有些不同。导出为 PDF 时如何删除 SelectItem 的文本框周围的边框?
【问题讨论】:
标签: java textbox styles export smartgwt