HTML tables summarize the basics

The basic form is a framework difficulty is to optimize the handling of the table.

<table frame="hsides" border="1" width="300px" height="100px" align="center" bordercolor="#00FF00">
<caption>学生信息</caption>
<tr>
<th>学号</th>
<th>学号</th>
<th>学号</th>
</tr>
<tr id="bg">
<th>123</th>
<th>123</th>
<th>123</th>
</tr>
</table>

This is one of the most simple form;

Results are as follows:

 

 

As can be divided into optimization table 2. Table 1. BACKGROUND boundary position 3. 4. The table cell spacing, cell margins.

1. border: border: a table showing the thickness of the border.

bordercolor: a table showing the border color.

2. Form background

需要在<table bgcolor="" background=""   > </table>

3. Form position

I.e. the table cell spacing, cell padding properties.

<table cellspacing="" cellpadding=""   >   </table>

4. This table position is very simple

<table width="" height="" >   </table>

Summarize what is a spreadsheet template, each style not to remember, with what went to check, we can solve the general problem.

Guess you like

Origin www.cnblogs.com/lianggegege123/p/12193696.html