解决方案 »

  1.   

            <div style="width:100%; text-align:center;">
            <asp:Label ID="label1"
                runat="server" Text="这里应该可以距中显示"></asp:Label>
             </div>
      

  2.   

    <div class="style1">
        &nbsp;<asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="X-Large" 
            ForeColor="#FF5050" style="text-align:center" Text="论坛"></asp:Label>
    </div>
    </form>
    我改完了,可是怎么还是不是居中呢哪儿出问题了呢
      

  3.   

    <div class="style1">
    这个你确定写对了?
    div.style1{
      width:100%;text-align:center;
    }
      

  4.   


    <center>
    <label></label>
    </center>
      

  5.   

    div style="width:100%; text-align:center; height:100%">
            <table runat="server" style="width: 100%;text-align:center"  >
                <tr >
                    <td >
                        <asp:Label ID="Label1" runat="server" Text="天天向上" style="vertical-align:middle  "></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
    我们最近才开始学 ,你可以看看 ,我也不是很清楚 ,只是乱弄,然后出来的