我正在尝试使用 loginstatus 控件将在选择登录后显示的登录控件居中。
<div id="linkContent">
<asp:LoginStatus ID="LoginStatus2" runat="server"
LogoutAction="RedirectToLoginPage" />
</div>
我尝试了几种在谷歌上找到的不同方法,但都没有奏效。我正在使用 IE 9。
我试过了:
#linkContent
{
text-align: center;
}
我努力了:
<div id="linkContent">
<asp:LoginStatus ID="LoginStatus2" runat="server"
LogoutAction="RedirectToLoginPage" style="text-align: center;" />
</div>
我试过了:
#linkContent
{
margin-left:auto;
margin-right:auto;
}
我还将登录指向我自己的 Login.aspx,但它也不起作用:
在网络配置中:
<authentication mode="Forms" >
<forms loginUrl="Login.aspx" />
</authentication>
这些都没有奏效。登录控件保持左对齐。loginStatus 控件在母版页中使用。
任何帮助,将不胜感激。
谢谢。