font属性的缩写方式
font-style设定斜体 如:font-style: italic;
font-weight设定文字粗细 如:font-weight: bold;
font-size设定文字大小 如:font-size: 12px;(或者9pt参考CSS手册http://www.52css.com/css/)
line-height设定行距 如:line-height: 150%;
color设定文字颜色(注意不是font-color) 如:color: red;
font-family设定字体 如:font-family : "Lucida Grande", Verdana, Lucida, Arial, Helvetica, 宋体
见解后:
font: italic bold 12px/150% "Lucida Grande", Verdana, Lucida, Arial, Helvetica, 宋体,sans-serif;}
定义规则:font-style font-weight font-size line-height font-family;而color设定文字颜色需要单独进行定义。
font-weight设定文字粗细 如:font-weight: bold;
font-size设定文字大小 如:font-size: 12px;(或者9pt参考CSS手册http://www.52css.com/css/)
line-height设定行距 如:line-height: 150%;
color设定文字颜色(注意不是font-color) 如:color: red;
font-family设定字体 如:font-family : "Lucida Grande", Verdana, Lucida, Arial, Helvetica, 宋体
见解后:
font: italic bold 12px/150% "Lucida Grande", Verdana, Lucida, Arial, Helvetica, 宋体,sans-serif;}
定义规则:font-style font-weight font-size line-height font-family;而color设定文字颜色需要单独进行定义。















