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

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

CSS font-size属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 450 ::
收藏到网摘: 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

登陆 | 还没注册?