当前位置: 首页 > 网络学院 > 网页制作基础教程 > CSS > 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.
CSS尺寸属性允许你控制元素的高度和宽度,还允许你增加两行的间距
Increase the space between lines
This example demonstrates how to increase the space between the lines.
增加两行的间距
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 |