当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS bottom属性

CSS
CSS2 Aural
CSS 单位
CSS 颜色
CSS 颜色值
CSS 颜色名称
CSS 编码与组织技巧
CSS 模块化设计思路
CSS完美兼容IE6/IE7/FF的通用方法
CSS @ Ten: 下一个重要的东西

CSS bottom属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 367 ::
收藏到网摘: n/a

The bottom property specifies the bottom edge of an element.
bottom属性可以指定与其最近一个具有定位设置的父对象底边相关的位置

Note: If the "position" property has a value of "static", the "bottom" property has no effect.
注意:如果"position"属性的值为"static"那么"bottom"属性就不起作用了

Inherited: No
继承性:无

举例

This example sets the bottom edge of the paragraph to 20 px above the bottom edge of the window:
这个举例会让段落位于窗口底部向上20px 的地方:
p
{
position: absolute;
bottom: 20px
}

This example sets the bottom edge of the paragraph to 20 px below the bottom edge of the window:
这个举例会让段落位于窗口底部向下20px 的地方:
p
{
position: absolute;
bottom: -20px
}

可用值

描述
auto Lets the browser calculate the bottom position
让浏览器计算出底部的位置
% Sets the bottom position in % from the bottom edge of the window
以按窗口百分比的形式来定位在底部的位置
length Sets the bottom position in px, cm, etc. from the bottom edge of the window. Negative values are allowed
让底部定位用px,cm,等距离单位。这个值为元素到窗口底边的距离。可以使用负数

评论 (0) All

登陆 | 还没注册?