中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

Style captionSide 屬性

Style 對(duì)象參考手冊 Style 對(duì)象

定義和用法

captionSide 屬性設(shè)置或返回表格標(biāo)題的位置。

語法

設(shè)置 captionSide 屬性:

Object.style.captionSide="top|bottom|inherit"

返回 captionSide 屬性:

Object.style.captionSide
描述
top 默認(rèn)。把表格標(biāo)題定位在表格之上。
bottom 把表格標(biāo)題定位在表格之下。
inherit captionSide 屬性的值從父元素繼承。

瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

所有主要瀏覽器都支持 captionSide 屬性。

注意:IE7 及更早的版本不支持 captionSide 屬性。IE8 只有規(guī)定了 !DOCTYPE 才支持 captionSide 屬性。IE9 支持 captionSide 屬性。


實(shí)例

實(shí)例

把表格標(biāo)題移到表格底部:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>小白教程(json.cn)</title>
<script>
function displayResult(){
????document.getElementById("myCap").style.captionSide="bottom";
}
</script>
</head>
<body>

<table border="1">
<caption id="myCap">My savings</caption>
????<tr>
????????<th>Month</th>
????????<th>Savings</th>
????</tr>
????<tr>
????????<td>January</td>
????????<td>$100</td>
????</tr>
????<tr>
????????<td>February</td>
????????<td>$150</td>
????</tr>
</table>
<br>
<button type="button" onclick="displayResult()">移動(dòng)表格標(biāo)題</button>

</body>
</html>

運(yùn)行代碼 ?

Style 對(duì)象參考手冊 Style 對(duì)象其他擴(kuò)展