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.
我是新来的struts。如何更改文本字段的标签颜色?
前任:
我想更改“类别代码”的颜色。我尝试了 cssstyle="color: #ffffff" 。但这仅更改了在文本框中输入的文本的颜色,而不是标签的颜色。
<s:label value="Username" cssStyle="color: #ffffff;"/> <s:textfield name="username" required="true" cssStyle="color:red"/>