gpt4 book ai didi

c# - 对齐文本右 asp :changepassword

转载 作者:太空宇宙 更新时间:2023-11-04 00:04:31 25 4
gpt4 key购买 nike

我使用 <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);

最佳答案

<asp:ChangePassword LabelStyle-HorizontalAlign="Justify"></asp:ChangePassword>

关于c# - 对齐文本右 asp :changepassword,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15418894/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com