!DOCTYPE htmlhtmlheadmeta charset=UTF-8title/title/headstyle type=text/csstr:hover{background-color: greenyellow;}/stylebodytable border=1 bordercolor=red width=400 hei...
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style type="text/css">
tr:hover{
background-color: greenyellow;
}
</style>
<body>
<table border="1" bordercolor="red" width="400" height="400" cellspacing="0" bgcolor="aqua" <!--background="img/3.jpg"-->>
<caption>表格标题</caption>
<tr>
<th>姓名</th><th>年龄</th><th>性别</th>
</tr>
<tr align="center">
<td>jack</td><td>18</td><td>男</td>
</tr>
<tr>
<td colspan="2">rose</td><td>女</td>
</tr>
<tr>
<td rowspan="2">tom</td><td>6</td><td>女</td>
</tr>
<tr>
<td>3</td><td>女</td>
</tr>
</table>
</body>
</html>
编程基础网
本文标题为:7.表格标签.html
基础教程推荐
猜你喜欢
- reactjs-nginx尝试根据uri在目录中查找index.html 2023-10-25
- 探讨Ajax中的一些小问题 2022-12-28
- Ajax提交post请求案例分析 2023-02-22
- 简单实现ajax三级联动效果 2023-02-14
- html5的表单标签 2023-10-26
- 编写轻量ajax组件02--浅析AjaxPro 2022-10-17
- vue keep-alive 2023-10-08
- 基于Spring Boot利用 ajax实现上传图片功能 2023-02-23
- jquery ajax实现文件上传功能实例代码 2023-02-14
- HTML申请注册表练习 2023-10-26
