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

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

CSS max-width属性


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

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

Inherited: No

Example
举例

h2
{
max-width: 500px
}

Possible Values
可用值

Value 描述
none Defines no limit on the maximum width allowed for the element
元素在最大宽度上没有限制
length Defines a maximum width for the element
定义元素的最大宽度
% Defines the maximum width for the element in % of the containing block
以容器区为基准按百分比来定义元素的最大宽度

评论 (0) All

登陆 | 还没注册?