Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/unit-testing/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
改变<;s:textfield name=";catbean.categorycode“;标签=";类别代码“;大小=“;15“/&燃气轮机;struts2中的标签颜色_Struts2_Struts Html - Fatal编程技术网

改变<;s:textfield name=";catbean.categorycode“;标签=";类别代码“;大小=“;15“/&燃气轮机;struts2中的标签颜色

改变<;s:textfield name=";catbean.categorycode“;标签=";类别代码“;大小=“;15“/&燃气轮机;struts2中的标签颜色,struts2,struts-html,Struts2,Struts Html,我不熟悉struts。如何更改textfield的标签颜色 例: 我想更改“类别代码”的颜色。我尝试了cssstyle=“color:#ffffff”。但这只改变了文本框中输入的文本的颜色,而不是标签的颜色。 <s:label value="Username" cssStyle="color: #ffffff;"/> <s:textfield name="username" required="true" cssStyle="color:red"/>

我不熟悉struts。如何更改textfield的标签颜色

例:

我想更改“类别代码”的颜色。我尝试了cssstyle=“color:#ffffff”。但这只改变了文本框中输入的文本的颜色,而不是标签的颜色。


<s:label value="Username" cssStyle="color: #ffffff;"/>
<s:textfield name="username" required="true" cssStyle="color:red"/>