我在更改PasswordStrength控件的字体时遇到问题。我什至尝试为其创建CSS类,如下所示:

.PassWordFont {
    font-size:12px;
    font-family:Verdana;
}


然后像这样把它放在标记中

<asp:PasswordStrength ID="PasswordStrength1" runat="server"
  TargetControlID="txtPassword1" DisplayPosition="RightSide"
  StrengthIndicatorType="Text"
  PreferredPasswordLength="15"
  PrefixText="Strength:"
  HelpStatusLabelID="lblLenIndicator"
  TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent"
  TextCssClass="PassWordFont"
  StrengthStyles="PWSSVeryPoor; PWSSWeak; PWSSAverage; PWSSStrong; PWSSExcellent"
  MinimumNumericCharacters="1"
  MinimumSymbolCharacters="0"
  RequiresUpperAndLowerCaseCharacters="false">
</asp:PasswordStrength>


我究竟做错了什么?

最佳答案

我以前只是使用CssClass而不是TextCssClass。

09-26 03:11