1、caption在一个<table>标记中只允许有一个:
如下代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<table border="1">
<caption>标题1</caption>
<caption>标题2</caption>
<caption>标题3</caption>
<tr>
<td>1111</td>
<td>2222</td>
</tr>
</table>
</body>
</html>
在Google中:
在Firefox中:
在IE中:
2、caption只能是table下的第一个子元素