font属性的综合写法
发布时间:09/01 来源:未知 浏览:
关键词:
font属性的综合写法,书写次序离别是:font-style font-variant font-weight font-size font-family。
实例:
.ziti {font:italic normal bold 18px arial;}
假如哪项属性是默许值,可以把他省略不写,系统会主动解析其为默许值。
font的取值有点复杂,取值主要分为两部分,此刻举几个[ [ <font-style> || <font-variant> || <font-weight> ]? <font-size> [ / <line-height> ]? <font-family> ]取值的例子,如下:
p { font:italic small-caps bold 12px/1.2em Arial; }
引荐教程:css快速入门
以上就是font属性的综合写法的具体内容,更多请关注百分百源码网其它相关文章!