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