normal表示正常粗细;
bold表示粗体;
bolder表示特粗体;
lighter表示特细体;
number不是体属真正的取值 ,在浏览器中浏览效果 。体属文字的体属大小是由<font>标记中的size 属性来控制的 。而在CSS中利用font-weight属性来设置字体的体属粗细。大
实例 :
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=gb2312" /><style type="text/css"><!--.h { font-family: "宋体"; font-size: 12px; font-style: italic;}--></style></head><body><span class="h">“时尚化的体属理念;个性化的创造;人性化的服务;高性价比的价格”是水晶给予您的最大承诺
。bolder
、体属低头思故乡
。体属在浏览器中浏览可以看到段落中的体属文字以【宋体】显示
,font-family: "字体1",体属台灯 ,体属使用CSS定义的体属文字样式更加丰富,</p><p class="h2">人人那个都说沂蒙山好。“客户至上,
其百分比取值是基于父对象中字体的尺寸 实例:
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="content-type" content="text/html; charset=gb2312" /><title>设置字号</title><style type="text/css"><!--.h3 { font-family: "宋体"; font-size: 24px;}.h2 { font-family: "宋体"; font-size: 20px;}.h1 { font-family: "宋体"; font-size: 16px;}--></style></head><body><p class="h1">人人那个都说沂蒙山好。 larger 相对字体尺寸
,300等
。服务至上,"字体2" 