Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的 jsp 文件中,我有以下行:
<tr><td><s:fielderror/></td></tr>
这会以默认黑色显示错误。知道如何将字段错误消息的颜色更改为红色并以突出显示的格式显示吗?
尝试这个:
<tr> <td style="color:blue;background-color:yellow;"> <s:fielderror/> </td> </tr>
http://www.w3schools.com/html/html_css.asp
我参与了一个 JSF 项目,并且正在尝试为购物车制作视图。用户的购物车可以包含存储在 cartBean 中的哈希映射(键 = id,值 = 数量)中的票。在 cart.xhtml 我尝试输出门票,在这里你可以看到代码:
<h:form>