英 [?b?t?m]? ?美 [?bɑ:t?m]??

n.底部;末端;臀部;盡頭

adj.底部的

vt.裝底;測(cè)量深淺;查明真相

vi.到達(dá)底部;建立基礎(chǔ)

第三人稱單數(shù): bottoms 復(fù)數(shù): bottoms 現(xiàn)在分詞: bottoming 過(guò)去式: bottomed 過(guò)去分詞: bottomed

javascript bottom屬性 語(yǔ)法

作用:設(shè)置定位元素下外邊距邊界與其包含塊下邊界之間的偏移。

語(yǔ)法:Object.style.bottom=auto|%|length

注釋:如果 "position" 屬性的值為 "static",那么設(shè)置 "bottom" 屬性不會(huì)產(chǎn)生任何效果。

javascript bottom屬性 示例

<html>
<head>
<style type="text/css">
input
{
position:absolute;
}
</style>
<script type="text/javascript">
function setBottomEdge()
{
document.getElementById("b1").style.bottom="100px";
}
</script>
</head>
<body>

<input type="button" id="b1" onclick="setBottomEdge()"
value="Set bottom edge to 100 px" />

</body>
</html>

運(yùn)行實(shí)例 ?

點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例