caption

UK[ˈkæpʃn] US[ˈkæpʃən]

n. Subtitle; title, caption, subtitle; third file

vt. Add captions to (pictures, photos, etc.); add titles to (documents, etc.); add subtitles to…

side

英[saɪd] Beauty [saɪd]

n. Side; aspect; side; face, edge

adj. Side; side; secondary, branch; deputy

vi. Support, agree; favor; agree; stand on the side of...

css caption-side property syntax

Function: caption-side attribute sets the position of the table title.

Description: This attribute specifies the placement position of the table title relative to the table frame. The table title is displayed as if it were a block-level element before (or after) the table.

Note: All browsers support the caption-side attribute. Internet Explorer 8 (and later) supports the caption-side attribute if !DOCTYPE is specified.

css caption-side property example

<!DOCTYPE>
<html>
<head>
<style type="text/css">
caption
{
caption-side:bottom
}
</style>
</head>
<body>
<table border="1">
<caption>This is a caption</caption>
<tr>
<td>Adams</td>
<td>John</td>
</tr>
<tr>
<td>Bush</td>
<td>George</td>
</tr>
</table>
<p><b>注释:</b>Internet Explorer 8 (以及更高版本)支持 caption-side 属性。</p>
</body>
</html>
Run instance »

Click the "Run instance" button to view the online instance