<html:form action="checkXmlUser.do" >
<bean:message key="login.jsp.name" />:<html:text property="userName"/><html:errors property="userName"/>
<html:errors property="userNameError"/><br>
<bean:message key="login.jsp.pass"/>:<html:text property="passWord"/><html:errors property="passWord"/>
<html:errors property="userPassError"/><br>
<html:submit value="登录"/><html:cancel/>
</html:form>
<bean:message key="login.jsp.name" />:<html:text property="userName"/><html:errors property="userName"/>
<html:errors property="userNameError"/><br>
<bean:message key="login.jsp.pass"/>:<html:text property="passWord"/><html:errors property="passWord"/>
<html:errors property="userPassError"/><br>
<html:submit value="登录"/><html:cancel/>
</html:form>
.myClass{
color:red
}
这是直接的。统一处理的话,加上span,div等层析。
例如:
<span class=""><html:radio ....></span>
CSS的基本知识应该没问题吧。
<table class="tableStyle" cellSpacing=0 cellPadding=4 rules=all border=1 align="center">
<tr>
<td width="30%"><bean:message key="login.jsp.name" /></td>
<td><html:text property="userName"/>
<html:errors property="userName"/>
<html:errors property="userNameError"/></td></tr>
<tr>
<td><bean:message key="login.jsp.pass"/></td>
<td><html:text property="passWord"/>
<html:errors property="passWord" />
<html:errors property="userPassError"/></td></tr>
<tr>
<td><html:submit value="登录" styleClass="buttonStyle" /></td>
<td><html:reset value="重写" styleClass="buttonStyle" /></td></tr>
</table>
</html:form>
谢谢各位,我改成这么写了