簡體   English   中英

如何在IzPack的用戶輸入文件字段中設置字體顏色?

[英]How to set font color on User Input file field of IzPack?

如何在以下字段消息中設置顏色? 文本“請輸入Jboss目錄名稱。” 應該以紅色顯示。

<field type="staticText" align="left" txt="Please enter the Jboss directory name."  conditionid="con_jboss_installed"/>

查看源代碼,描述字段支持HTML呈現(它正在查找並在文本的開頭和結尾),因此以下內容應該起作用:

<field type="staticText" align="left" conditionid="con_jboss_installed">
  <description><html><body><p style="color: red;">Please enter the Jboss directory name.</p></body></html></description>
</field>

這需要IzPack 5。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM