font属性的综合写法


本文摘自PHP中文网,作者V,侵删。

font属性的综合写法,书写顺序分别是:font-style font-variant font-weight font-size font-family。

实例:

1

.ziti {font:italic normal bold 18px arial;}

如果哪项属性是默认值,可以把他省略不写,系统会自动解析其为默认值。

font的取值有点复杂,取值主要分为两部分,现在举几个[ [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height> ]? <font-family> ]取值的例子,如下:

1

2

3

4

p

{

    font:italic small-caps bold 12px/1.2em Arial;

}

推荐教程:css快速入门

以上就是font属性的综合写法的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

html中font属性的总结

css font属性怎么用

font属性的综合写法

更多相关阅读请进入《font属性》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...