所有css字体属性的一个css声明 [英] One css declaration for all css font properties
本文介绍了所有css字体属性的一个css声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将所有css字体属性设置为一个值的正确语法是什么。
What is the proper syntax for putting all css font properties into one value.
body {font: 12px, arial, red}
有所有选择器和属性。
推荐答案
body{
font: bold italic 15px/20px arial,sans-serif;
color: red;
}
http://www.w3schools.com/css/tryit.asp?filename=trycss_font
您不能将颜色作为声明的一部分。
15px / 20px = font-size / line-height
you can't include the color as part of the declaration. 15px/20px = font-size/line-height
nice link,maegar!
nice link, maegar!
这篇关于所有css字体属性的一个css声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文