我用空格對齊標籤,但它沒有正常工作。 我也把所有的標籤放在面板上水平對齊。 我的代碼看起來像這樣
<asp:Panel ID="Panel4" runat="server">
<asp:Label ID="Label4" runat="server" Text="Last Name"></asp:Label>
<asp:Label ID="Label6" runat="server" Text="First Name"></asp:Label>
<asp:Label ID="Label5" runat="server" Text="Middle Name"></asp:Label>
<asp:Label ID="Label14" runat="server" Text="Tuition"></asp:Label>
<asp:Label ID="lblTuition" runat="server" BorderWidth="1px" Width="75px"></asp:Label>
</asp:Panel>
你不能。 asp.net是一種服務器端語言。你應該使用css。 – Dekel
那麼,使用css來對齊這些標籤的語法是什麼? – Gab
我不知道你的HTML是什麼樣的......你應該從那開始。 – Dekel