2016-07-12 13 views
-1

Ich mag dieses für die Verwendung von (Erstellen Flatlines)Erstellen von Tabellen ohne Rahmen

enter image description here jedoch konnte ich nicht Code eine Tabelle zeichnen möchten finden

Welche Tag kann ich = benutzen?

+0

Read [http://www.w3schools.com/html/html_tables.asp](http://www.w3schools.com/html/html_tables.asp) – Rohit

+0

Mögliche doppelte von [Ränder aus Tabellen im Word-Export können nicht entfernt werden] (http://stackoverflow.com/questions/1869849/cant-remove-borders-from-tables-in-word-export) –

Antwort

0

table { 
 
    border-collapse: collapse; /* Merge borders of neighbouring cells */ 
 
    border: 2px solid black; 
 
} 
 
tr:nth-child(odd) { 
 
    background-color: #ddd; /* Alternate background colors on rows */ 
 
} 
 
td, th { 
 
    border: 1px solid black; 
 
}
<table> 
 
    <tbody> 
 
    <tr> 
 
     <th>URUN KODU</th> 
 
     <td>Encoder</td> 
 
     <td>PWM</td> 
 
    </tr> 
 
    <tr> <!-- this is empty row that spans whole table and acts as "double line" --> 
 
     <td colspan="3"> <!-- Update "colspan" attribute to number of columns --> 
 
     </td> 
 
    </tr> 
 
    <tr> 
 
     <th>M91-2-T1</th> 
 
     <td>2</td> 
 
     <td rowspan="2"> <!-- that's the cell that spans two rows --> 
 
     2 (0,5 KHz) 
 
     </td> 
 
    <tr> 
 
     <th>M91-2-T38</th> 
 
     <td>2</td> 
 
    </tr> 
 
    </tbody> 
 
</table>

Verwandte Themen