bottom
英 [?b?t?m]? ?美 [?bɑ:t?m]??
n.底部;末端;臀部;盡頭
adj.底部的
vt.裝底;測量深淺;查明真相
vi.到達(dá)底部;建立基礎(chǔ)
css bottom屬性 語法
作用:bottom 屬性規(guī)定元素的底部邊緣。
說明:該屬性定義了定位元素下外邊距邊界與其包含塊下邊界之間的偏移。如果 "position" 屬性的值為 "static",那么設(shè)置 "bottom" 屬性不會產(chǎn)生任何效果。?
注釋:所有主流瀏覽器都支持 bottom 屬性。任何的版本的 Internet Explorer (包括 IE8)都不支持屬性值 "inherit"。
css bottom屬性 示例
<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>
點(diǎn)擊 "運(yùn)行實(shí)例" 按鈕查看在線實(shí)例