HTML-- table

A table consists of <table> </ table> tag defined,

<Tr> </ tr> tags to define the line,

<Td> </ td> tags to define columns

<table border="1px">
    <tr>
        <td></td>
        <td></td>
    </tr>
    <tr>
        <td></td>
        <td></td>
    </tr>
</table>

<Table> tag

Wherein border = "1" refers to the representative unit cell size of the border px

height = "" height set the table

width = "" width setting table

cellspacing = "" When the distance between the cells cell spacing = "will 0px when a line."

cell padding = "content cell" cell pitch

 

 

 

Two attributes <td> tags;

1.rowspan: Line Merge as rowspan = "2" merger of the two lines merge is complete, remember to delete the remaining td

2.collspan: columns into such collsopan = "2" merge two Similarly

note;

Characteristic table, changing a size of the cell, decreased or increased, the overall area of ​​the same, and only changes in the cell, oxygen as an oxygen bottle, with all small gas volume constant. High cells in the same row is the same change, the same as the width of ten columns.

 

Guess you like

Origin www.cnblogs.com/layuechuquwan/p/11029708.html