bottom

英 [ˈbɒtəm]   美 [ˈbɑ:təm]  

n.底部;末端;臀部;尽头

adj.底部的

vt.装底;测量深浅;查明真相

vi.到达底部;建立基础

css bottom属性 语法

作用:bottom 属性规定元素的底部边缘。

说明:该属性定义了定位元素下外边距边界与其包含块下边界之间的偏移。如果 "position" 属性的值为 "static",那么设置 "bottom" 属性不会产生任何效果。 

注释:所有主流浏览器都支持 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>
运行实例 »

点击 "运行实例" 按钮查看在线实例

热门推荐

最新文章