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

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

CSS font-size属性


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

The font-size property sets the size of a font.
font-size属性可设置字体的大小

Inherited: Yes
继承性:有

举例

body
{
font-size: x-large
}

p
{
font-size: 10px
}

可用值

描述
xx-small
x-small
small
medium
large
x-large
xx-large
Sets the size of the font to different sizes, from xx-small to xx-large
可以从xx-small到xx-large来设置不同大小的字体
smaller Sets the font-size to a smaller size than the parent element
设置比父级元素小一号的字体
larger Sets the font-size to a larger size than the parent element
设置比父级元素大一号的字体
length Sets the font-size to a fixed size
设置固定大小的字体
% Sets the font-size to a % of  the parent element
设置以父级元素为基准的百分比字体大小

评论 (0) All

登陆 | 还没注册?