zoukankan      html  css  js  c++  java
  • 移动端 | table 布局

    1 <table border="2" cellpadding=“10” cellspacing="0">
    2   <caption>表格标题</caption>
    3   <tr>
    4     <td align="center"></td>
    5   </tr>
    6 </table>

    常用属性总结:

    1. table tr th td;
    2. border 设置tabe的边框,值越大,边框越粗;
    3. <td colspan="2"> 横跨两列的单元格,<td rowspan="2"></td> 横跨两行的单元格;
    4. <td>&nbsp</td> 空单元格 &nbsp;
    5. <caption></caption> 表格的标题;
    6. td 每个单元格里可以添加任意的html标签;
    7. <table>单元格的padding设置, cellpadding="10"; 单元格的间距,cellspacing=“0”;bgcolor=“red”,为表格添加背景色;background=“i/a.png”,背景图片
    8. <td bgcolor="red" background="i/abb.png"> 单元格添加背景色、背景图片;
    9. <td align="center"></td>  align="center" left/right 设置单元格中的排列;
  • 相关阅读:
    集合的概述
    mysql修改用户名密码
    CentOS7 安装Chrome的方法
    常用sql汇总
    Rabbitmq六大应用模式
    高可用RabbitMQ集群搭建
    docker-compose
    Haystack
    幂等性问题剖析
    用redis构建分布式锁
  • 原文地址:https://www.cnblogs.com/wuhaoquan/p/9407472.html
Copyright © 2011-2022 走看看