bottom

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

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

adj.底部的

vt.裝底;測量深淺;找出真相

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

css bottom屬性 語法

作用:bottom 屬性規(guī)定元素的底部邊緣。

說明:此屬性定義了定位元素下外邊距邊界與其包含區(qū)塊下邊界之間的偏移。如果 "position" 屬性的值為 "static",則設(shè)定 "bottom" 屬性不會產(chǎn)生任何效果。?

註解:所有主流瀏覽器都支援 bottom 屬性。任何的版本的 Internet Explorer (包括 IE8)都不支援屬性值 "inherit"。

css bottom屬性 範(fàn)例

<html>
<head>
<style type="text/css">
img.ex1
{
position:absolute;
bottom:0px;
}
img.ex2
{
position:relative;
bottom:-100px;
}
</style>
</head>
<body>
<img class="ex1" src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" />
<h1>This is a heading</h1>
<img class="ex2" src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" />
</body>
</html>
執(zhí)行實例 ?

#點擊 "執(zhí)行實例" 按鈕查看線上實例

#