当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > CSS 尺寸

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

CSS 尺寸


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

The CSS dimension properties allow you to control the height and width of an element. It also allows you to increase the space between two lines.
CSS尺寸属性允许你控制元素的高度和宽度,还允许你增加两行的间距


Examples

Increase the space between lines
This example demonstrates how to increase the space between the lines.
增加两行的间距


CSS Dimension Properties
CSS尺寸属性

The CSS dimension properties allow you to control the height and width of an element. It also allows you to increase the space between two lines.
同上的意思

Browser support: IE: Internet Explorer, F: Firefox, N: Netscape.
浏览器支持:IE: Internet Explorer, F: Firefox, N: Netscape

W3C: The number in the "W3C" column indicates in which CSS recommendation the property is defined (CSS1 or CSS2).
W3C:里面的数字代表CSS版本号

属性 描述 IE F N W3C
height Sets the height of an element
设置元素的高度
auto
length
%
4 1 6 1
line-height Sets the distance between lines
设置两行间的距离(行高)
normal
number
length
%
4 1 4 1
max-height Sets the maximum height of an element
设置元素的最大高度
none
length
%
- 1 6 2
max-width Sets the maximum width of an element
设置元素的最大宽度
none
length
%
- 1 6 2
min-height Sets the minimum height of an element
设置元素的最小高度
length
%
- 1 6 2
min-width Sets the minimum width of an element
设置元素的最小宽度
length
%
- 1 6 2
width Sets the width of an element
设置元素的宽度
auto
%
length
  
4 1 4 1

评论 (0) All

登陆 | 还没注册?