zoukankan      html  css  js  c++  java
  • html5,表格

    <table border="1">
    <caption>表格的实例</caption>
    <tr><td>单元格</td> <td>单元格</td> <td>单元格</td></tr>
    <tr><td>单元格</td><td>单元格</td><td>单元格</td></tr>
    <tr><td>单元格</td><td>单元格</td><td>单元格</td></tr>
    </table>

    <table border="1">
    <thead style="background: red">
    <tr><th colspan="5">aaaa</th></tr>
    </thead>
    <tbody style="background: red">
    <tr><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td></tr>
    <tr><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td></tr>
    <tr><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td></tr>
    </tbody>
    <tfoot style="background: green">
    <tr><th colspan="5">备注</th></tr>
    </tfoot></table>


    <table border="1">
    <colgroup span="1" style=" 150px">
    <col style="background: red">
    </colgroup>
    <colgroup span="3" style=" 200px">
    <col style="background: green">
    <col style="background: red">
    <col style="background: green">
    </colgroup>
    <colgroup span="1" style=" 350px"></colgroup>
    <tr><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td></tr>
    <tr><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td></tr>
    <tr><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td><td>aaaa</td></tr>
    </table>

    天道酬勤,厚积薄发。 君子之行,静以修身,俭以养德。 非淡泊无以明志,非宁静无以致远。 如有恒,何须三更起,半夜眠;最怕莫,三天打鱼两天晒网,竹篮打水一场空。
  • 相关阅读:
    pythonchallenge 解谜 Level 6
    pythonchallenge 解谜 Level 5
    pythonchallenge 解谜 Level 4
    pythonchallenge 解谜 Level 3
    pythonchallenge 解谜 Level 2
    pythonchallenge 解谜 Level 1
    CCF 201912-2 回收站选址
    JavaWeb+JDBC+Servlet+SqlServer实现登录功能
    后台连接数据库的方法
    jQuery实现轮播图
  • 原文地址:https://www.cnblogs.com/houweidong/p/5815759.html
Copyright © 2011-2022 走看看