2017-02-27 3 views
1

Design-Problem. .................................................. .................................................. ...asp.net kann nicht platziert werden Tabellenzelle in Webseite

Ich habe Schwierigkeiten, die "Primary Baseline Target" -Tabellenzelle richtig zu setzen. Ich habe verschiedene Stile ausprobiert, aber es hat nicht geholfen. Danke im Voraus.

erforderlich: enter image description here

Mein o/p: enter image description here

css:

.labels { 
    font-size: 9pt; 
    font-weight: bold; 
    font-family: Calibri; 
} 

Html

<fieldset style="border: solid; border-width: thin; width: 95%; height: 200px; border-color: #a8a8a8; margin: auto;"> 
    <legend id="Legend14" runat="server" visible="true" style="width: auto; margin-bottom: 0px; font-size: 12px; font-weight: bold; color: #1f497d;">&nbsp;&nbsp; Project Performance &nbsp;&nbsp;</legend> 
    <div style="margin-bottom: 10px; margin-left: 10px;"> 
     <asp:Table ID="table8" runat="server" CssClass="labels"> 
      <asp:TableRow> 
       <asp:TableCell> 
        Critical to Quality (CTQ) &nbsp;&nbsp; 
       </asp:TableCell> 
       <asp:TableCell> 
        <asp:TextBox runat="server" Width="590px" Height="23px" ></asp:TextBox> 
       </asp:TableCell> 
      </asp:TableRow> 
      <asp:TableRow> 
       <asp:TableCell> 
        Baseline Performance &nbsp;&nbsp; 
       </asp:TableCell> 
       <asp:TableCell> 
        <asp:TextBox runat="server" Width="590px" Height="23px" ></asp:TextBox> 
       </asp:TableCell> 
      </asp:TableRow> 
      <asp:TableRow> 
       <asp:TableCell> 
        Primary Metric &nbsp;&nbsp; 
       </asp:TableCell> 
       <asp:TableCell> 
        <asp:TextBox runat="server" Width="95px" Height="23px" ></asp:TextBox> 
       </asp:TableCell> 
       <asp:TableCell> 
        Primary Baseline Target &nbsp;&nbsp; 
       </asp:TableCell> 
       <asp:TableCell> 
        <asp:TextBox runat="server" Width="95px" Height="23px" ></asp:TextBox> 
       </asp:TableCell> 
      </asp:TableRow> 
      <asp:TableRow> 
       <asp:TableCell> 
        Secondary Metric &nbsp;&nbsp; 
       </asp:TableCell> 
       <asp:TableCell> 
        <asp:TextBox runat="server" Width="590px" Height="23px" ></asp:TextBox> 
       </asp:TableCell> 
      </asp:TableRow> 
      <asp:TableRow> 
       <asp:TableCell> 
        Target performance &nbsp;&nbsp; 
       </asp:TableCell> 
       <asp:TableCell> 
        <asp:TextBox runat="server" Width="590px" Height="23px" ></asp:TextBox> 
       </asp:TableCell> 
      </asp:TableRow> 
      <asp:TableRow> 
       <asp:TableCell> 
        Performance at Project Close &nbsp;&nbsp; 
       </asp:TableCell> 
       <asp:TableCell> 
        <asp:TextBox runat="server" Width="590px" Height="23px" ></asp:TextBox> 
       </asp:TableCell> 
      </asp:TableRow> 
     </asp:Table> 
    </div> 
</fieldset> 

Antwort

1

Sie müssen die Spalten der Zeilen umspannen, ohne zwei TextBoxen mit ColumnSpan. Im Grunde brauchen Sie 4 Spalten, aber diese 4 sind nur in den Zeilen 3 und 4 erforderlich. In allen anderen Zeilen verwenden Sie sie nicht, also müssen Sie diejenigen überspannen, die in der zweiten Spalte beginnen.

<asp:Table ID="table8" runat="server" CssClass="labels"> 
    <asp:TableRow> 
     <asp:TableCell> 
      Critical to Quality (CTQ) &nbsp;&nbsp; 
     </asp:TableCell> 
     <asp:TableCell ColumnSpan="3"> 
      <asp:TextBox runat="server" Width="590px" Height="23px" ></asp:TextBox> 
     </asp:TableCell> 
    </asp:TableRow> 
    <asp:TableRow> 
     <asp:TableCell> 
      Baseline Performance &nbsp;&nbsp; 
     </asp:TableCell> 
     <asp:TableCell ColumnSpan="3"> 
      <asp:TextBox runat="server" Width="590px" Height="23px" ></asp:TextBox> 
     </asp:TableCell> 
    </asp:TableRow> 
    <asp:TableRow> 
     <asp:TableCell> 
      Primary Metric &nbsp;&nbsp; 
     </asp:TableCell> 
     <asp:TableCell> 
      <asp:TextBox runat="server" Width="95px" Height="23px" ></asp:TextBox> 
     </asp:TableCell> 
     <asp:TableCell> 
      Primary Baseline Target &nbsp;&nbsp; 
     </asp:TableCell> 
     <asp:TableCell> 
      <asp:TextBox runat="server" Width="95px" Height="23px" ></asp:TextBox> 
     </asp:TableCell> 
    </asp:TableRow> 
</asp:Table> 
+0

lassen Sie mich versuchen ..... – Sak

Verwandte Themen