table border appears in

When the border attribute table is set if the value is not 0, the frame contains

Like

1 2
3 4

The default is 0, if you want to put him into the following format

1 2
3 4
1 2
3 4

<table border="1" rules="rows">

Will have to set the properties of the rules table can be set to a specific attribute value can be found, so that it can be set to display only the row or column lines,

If you set the frame border tr of: 1px solid # 000fff; display and can not do,

<table border="0">

<tr style="border:1px solid #ff00ff;"><td>1</td><td>2</td></tr>

<tr style="border:1px solid #ff00ff;"><td>3</td><td>4</td></tr>

</table>

The default setting of the border because it is being replaced by a td border, if not set the border and border or inconsistent tr td td's, then display the results would not do so,

Sometimes if you use td attributes to write a lot of code class = "",

If use is provided tr, you will have to use another property of the table border-cellapse: cellapse; this will be, and this property is the reason for the effect of td and tr show together the

(This property is incorporated adjacent sides are sides of the table rows and the cells are combined or separated according to standard HTML style), the default status separate (tr td display is divided state)

If the reasons set this property value cellapse is the tr td display effect becomes together, and this is why there is the desired effect of the

Guess you like

Origin blog.csdn.net/soliy/article/details/5440482