我似乎无法更改所需字段验证器的默认颜色。在源头是:
<span class="required">*</span> <asp:requiredFieldValidator ID="valReq_txtTracks" runat="server" ControlToValidate="txtTracks" Display="Dynamic" />
<asp:requiredFieldValidator runat="server" CssClass="error-text" ErrorMessage="required" />
在渲染源中,我看到:
<span class="required">*</span> <span id="ctl00_ctl00_cphContent_cphContent_valReq_txtTracks" class="error-text" style="color:Red;display:none;">required</span>
注意“style = color:Red;”。那需要走。我不能用CSS类覆盖它,因为它是内联CSS。我该怎么办?