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

CSS
CSS 介绍
CSS 语法
使用 CSS
CSS 背景
CSS 文字
CSS 字体
CSS 边框
CSS 边距
CSS 填充
CSS 列表
CSS 尺寸
CSS 类别
CSS 定位
CSS 伪类
CSS 伪元素
CSS2 Media类型
CSS 摘要
CSS 实例
CSS2 参考资料
CSS2 打印

CSS max-height属性


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

The max-height property sets the maximum height of an element.
max-heigt属性可以设置一元素的最大的高度。

Inherited: No
继承性:无

Example
举例

p
{
max-height: 100px
}

Possible Values
可用值

Value 描述
none Defines no limit on the maximum height allowed for the element
在元素的高度最大值上定义为无限制
length Defines a maximum height for the element
定义元素的最大高度
% Defines the maximum height for the element in % of the containing block
以百分比为单位定义元素在其容器区内的最大高度。

评论 (0) All

登陆 | 还没注册?