c# - 对齐文本右 asp :changepassword

标签 c# asp.net css alignment change-password

我使用 <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/

相关文章:

c# - 这个对象是一个整型。我可以在不到五行的代码中得到它的值(value)吗?

c# - Blazor 中的 Google Chrome 扩展程序

c# - Xml反序列化为对象,反射为类型

javascript - c# 限制在gridview中选择的复选框数量

css - LESS docs on guarded mixins——为什么这条规则不匹配任何mixin?

c# - 有什么方法可以检查哪个 IDE 用于创建 .Net 项目

javascript - 如何使用 JavaScript 从 GridView 单元格分配和检索值?

c# - 字符串分数加倍

html - 侧面导航,链接在右边

javascript - Bootstrap 选择下拉菜单只有图标