zoukankan      html  css  js  c++  java
  • html表格标签

    <html>
    <head>
    <!-- 解决乱码,告诉浏览器 当前文档类型和编码 -->
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
    </head>
    <body>
    <!--
    <table> 表格:
    cellspacing: 外边距 => 单元格和其他单元格(边框)之间的距离
    cellpadding: 内边距 => 内容和单元格框线之间的距离
    <tr>:table row 表格中的一行
    <td>:table data cell 一行中的一个单元格
    <th>:table header 标题单元格
    colspan属性: 横着占多少列
    rowspan属性: 竖着占多少行
    align属性:对齐


    -->
    <table border="1" cellpadding="20" cellspacing="50" >
    <tr>
    <th colspan="3" >学生信息表</th>
    </tr>
    <tr>
    <td colspan="3" align="center" ><b>学生信息表</b></td>
    </tr>
    <tr>
    <td>学生姓名</td>
    <td>学生班级</td>
    <td>学生性别</td>
    </tr>
    <tr>
    <td>tom</td>
    <td>12期</td>
    <td rowspan="2" >male</td>
    </tr>
    <tr>
    <td>jerry</td>
    <td>12期</td>
    </tr>
    </table>
    </body>
    </html>

  • 相关阅读:
    今天晚上有个什么样的博文呢
    STM8CubeMx来了
    开博啦
    Authentication
    文件上传设计要点
    分布式杂记
    SQL Server 知识集
    C# 集合使用误区
    网络知识集
    关于 elasticsearch 近实时特征的思考
  • 原文地址:https://www.cnblogs.com/nextgg/p/7646065.html
Copyright © 2011-2022 走看看