html做表格(个人简历)

1. table>tbody>tr*3>td*3 按Tab新建三行三列的表格

   

                               


2.  <table align="center" border="1" cellspacing="0" width="45%">

    表格居中整个网页,整个框为细线,宽度占网页的45%


3.<tbody align="center">

   每个格子里的内容相对于格子也居中


4.          <tr>
                 <td colspan="7" align="center" height="50px">个人简历</td>    
             </tr>

  “个人简历”占7列且居中单元格,高度为50PX

扫描二维码关注公众号,回复: 2954620 查看本文章

5.        <tr>
                 <td width="80px" height="30px" style="background-color:#ededed" >姓名</td>
                 <td width="80px"></td>
                 <td width="80px" style="background-color:#ededed">性别</td>
                 <td width="80px"></td>
                 <td width="80px" style="background-color:#ededed">出生年月</td>
                 <td width="80px"></td>
                 <td rowspan="5"></td>
          </tr>

“姓名”的背景色为浅灰色,且最后一列占5行(出生年月后面的第二列)


6.  简单效果图如下

                     

猜你喜欢

转载自blog.csdn.net/qq_42720683/article/details/81293741
今日推荐