font属性问题
font-family与font-weight的区别
font-weight字面理解为字重,它有几种形式?
font-family与font-weight的区别
font-weight字面理解为字重,它有几种形式?
2016-07-15
font-family一般是定义使用的字体
eg:
p#songti { font-family:"宋体";}
p#Arial { font-family:Arial;}
p {font-family:"宋体",Arial;}
font-weight一般是定义字体的粗细
形式:
normal:正常,等同于 400
bold:粗体,等同于 700
bolder:更粗
lighter:更细
100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900:字体粗细的绝对值
eg:
p#normal{font-weight:normal;}
p#bold{font-weight:bold;}
p#100{font-weight:100;}
p#900{font-weight:900;}
p#bolder{font-weight:bolder;}
p#lighter{font-weight:lighter;}
举报