把body中 MS_POSITIONING="GridLayout"删掉

解决方案 »

  1.   

    center所在的element最好是100%的.或者你可以这样:<body>
    <div style="width:100%" align="center">
     ....
    </div>
    </body>
      

  2.   

    好像ASPX不支持<center></center>,你可以把你的控件放到表格里面就能让它居中了。<asp:table id="Table1" Width="777" BorderWidth="0" HorizontalAlign="Center" Runat="server" CellPadding="0" CellSpacing="0">
    <asp:TableRow HorizontalAlign="Center" VerticalAlign="Top" Width="100%" BorderWidth="0" Runat="server">
    <asp:TableCell ColumnSpan="3" HorizontalAlign="Center" VerticalAlign="Top" Width="100%" BorderWidth="0" BackColor="#00659c" Height="1" Runat="server">
    <asp:label id="Label2" runat="server">aaaaaa</asp:lable>
    </asp:TableCell>
    </asp:TableRow>