Ich habe eine Tabelle in ASP.Net wie folgt.Wie gibt man eine Rahmenlinie an ein einzelnes td-Element im table-Element an?
<table width="100%">
<tr>
<td rowspan="4" colspan="2" class="style1">
</td>
<td>
<asp:Label ID="label1" runat="server" Text="Label1"></asp:Label>
</td>
<td>
<asp:TextBox ID="TextBox4" runat="server" Width="136px">
</asp:TextBox>
</td>
</tr>
<tr>
<td><asp:Label ID="label2" runat="server" Text="Label2"></asp:Label></td>
<td><asp:TextBox ID="TextBox1" runat="server" Width="136px">
</asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="label3" runat="server" Text="Label3"></asp:Label></td>
<td><asp:TextBox ID="TextBox2" runat="server" Width="136px">
</asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="label4" runat="server" Text="Label4"></asp:Label></td>
<td><asp:TextBox ID="TextBox3" runat="server" Width="136px">
</asp:TextBox></td>
</tr>
</table>
Ich möchte Grenzlinie zum ersten td Element geben, die die colspan und rowspan enthält. Nicht für die ganze Reihe. Bitte geben Sie eine Lösung.
Hallo, was haben Sie bisher versucht? Und was war das Ergebnis? –
@Spiny. Ich habe ein Stylesheet verwendet und das im Element-Tag eingefügt. wie .border {border-color: schwarz; Rand-Stil: fest; } Aber ich möchte eine dünne Linie als Grenze. Ich habe alle anderen Möglichkeiten ausprobiert, die ich nicht bekommen konnte. – thevan