可以,例如:<td class="td1" align="center"  > 中的class="td1"就是<link rel="stylesheet" href="../../css/css.css">中的样式。

解决方案 »

  1.   

    感谢楼上,你举的是标准的HTML表单,我要的是STRUTS中的表单美化
      

  2.   

    <style>
    c1{
        color:red;
    }
    </style><html:text property="somefield" styleClass="c1">
      

  3.   

    上面c1前落了一个点
    <style>
    .c1{
        color:red;
    }
    </style><html:text property="somefield" styleClass="c1">或是<html:text property="somefield" style="color:red;">可能也可以
      

  4.   

    <STYLE>
    .dis_edit_txt{  BORDER-BOTTOM:#ffffff 1px solid; BORDER-LEFT:#ffffff 1px solid; BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: 
      #ffffff 1px; COLOR: rgb(4,f,f); FONT-SIZE: 9pt; background-color:#ffffff; height: 15px;font-size: 12px;
    }
    </STYLE>
    <html:text name="element2" property="btrq"
    styleClass="dis_edit_txt" size="16" readonly="true">