日期:2014-05-18  浏览次数:20469 次

想问一个ASP.NET的布局问题。请高手指点。
我在一个Login.aspx里面写了一登陆界面
  <div   align=center   >
  <asp:Login   ID= "Login1 "   runat= "server "   BackColor= "#F7F6F3 "   BorderColor= "#E6E2D8 "   BorderPadding= "4 "
                        BorderStyle= "Solid "   BorderWidth= "1px "   Font-Names= "Verdana "   Font-Size= "0.8em "
                        ForeColor= "#333333 "   CheckBoxStyle-HorizontalAlign=Center>
                        <TitleTextStyle   BackColor= "#5D7B9D "   Font-Bold= "True "   Font-Size= "0.9em "   ForeColor= "White "   />
                        <InstructionTextStyle   Font-Italic= "True "   ForeColor= "Black "   />
                        <TextBoxStyle   Font-Size= "0.8em "   />
                        <LoginButtonStyle   BackColor= "#FFFBFF "   BorderColor= "#CCCCCC "   BorderStyle= "Solid "   BorderWidth= "1px "
                                Font-Names= "Verdana "   Font-Size= "0.8em "   ForeColor= "#284775 "   />
                </asp:Login>
     
        </div>
但是我想让他位于界面的正中央,我打了很&nbsp;进去,想问一下有什么好的方法来设计界面么。

------解决方案--------------------
加一个panle
------解决方案--------------------
<div align=center style= "text-align:center; " >
<asp:Login ID= "Login1 " runat= "server " BackColor= "#F7F6F3 " BorderColor= "#E6E2D8 " BorderPadding= "4 "
BorderStyle= "Solid " BorderWidth= "1px " Font-Names= "Verdana " Font-Size= "0.8em "
ForeColor= "#333333 " CheckBoxStyle-HorizontalAlign=Center>
<TitleTextStyle BackColor= "#5D7B9D " Font-Bold= "True " Font-Size= "0.9em " ForeColor= "White " />
<InstructionTextStyle Font-Italic= "True " ForeColor= "Black " />
<TextBoxStyle Font-Size= "0.8em " />
<LoginButtonStyle BackColor= "#FFFBFF " BorderColor= "#CCCCCC " BorderStyle= "Solid " BorderWidth= "1px "
Font-Names= "Verdana " Font-Size= "0.8em " ForeColor= "#284775 " />
</asp:Login>

</div>