我使用<asp:changepassword />
控件,但我不知道如何将新密码文本和其他字段向左对齐而不是向右对齐。我已经尝试添加一个类并做text-align: left
,但对齐仍然在右边。
可以左对齐吗?
<asp:changepassword id="ChangePassword1" CssClass="teste" runat="server" continuedestinationpageurl="index.aspx"
oncancelbuttonclick="ChangePassword1_CancelButtonClick" onsendingmail="PasswordRecovery1_SendingMail"
changepasswordtitletext=" ">
<ChangePasswordButtonStyle CssClass="botaoAccaoBlue passwordbuttonsfix" />
<ContinueButtonStyle CssClass="botaoAccaoBlue passwordbuttonsfix" />
<CancelButtonStyle CssClass="botaoAccaoGray passwordbuttonsfix" />
</asp:changepassword>
这在 PageLoad 上:
ChangePassword1.ChangePasswordButtonText = Resources.Common.ResourceManager.GetString("ChangePassword", culture);
ChangePassword1.CancelButtonText = Resources.Common.ResourceManager.GetString("Cancel", culture);
ChangePassword1.PasswordLabelText = Resources.UserConst.ResourceManager.GetString("Password", culture);
ChangePassword1.ConfirmNewPasswordLabelText = Resources.Common.ResourceManager.GetString("ConfirmPassword", culture);
ChangePassword1.NewPasswordLabelText = Resources.Communication.ResourceManager.GetString("New", culture) + " " + Resources.UserConst.ResourceManager.GetString("Password", culture);