温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

HTML5表格标记

发布时间:2020-07-15 09:10:22 来源:网络 阅读:474 作者:A追途 栏目:web开发

表格标记:<table></table>、<tr></tr>、<td></td>、<th></th>、<caption></caption>

<!--table作为一个表格的容器-->
table参数:
<table width=“” border=“” cellspacing=“” cellpadding=“” align=“” bgcolor=“” bordercolor=“” cols=“”></table>

<!--tr表格的行-->
<!--td表格的单元格,既列-->
<!--th表格中的字体加粗-->
<!--caption标题行-->
代码:
<table width="400" border="1" cellspacing="2" cellpadding="2" align="center" oninvalid="top" background=""
bgcolor="aqua" bordercolor="red" bordercolordark="blue" cols="2">
<table>

<caption>标题行:php是世界上最好的语言</caption>

<tr>
    <td colspan="2" align="center"> 
    <strong>合并两栏</strong>
    </td>
</tr>

<tr>
    <td>第一栏第一行</td>
    <td>第二栏第一行</td>
</tr>

<tr>
    <td>第一栏第二行</td>
    <td>第二栏第二行</td>
</tr>

</table>
向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI