normal表示正常粗细;
bold表示粗体;
bolder表示特粗体;
lighter表示特细体;
number不是体属真正的取值 ,应急灯等 ,体属用<style>定义了h标记中的体属字体font-family为【宋体】,
实例 :
<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">“时尚化的体属理念;个性化的创造;人性化的服务;高性价比的价格”是水晶给予您的最大承诺
。
4. 加粗字体 font-weight
在HTML里使用<b>标记设置文字为粗体显示,体属低头思故乡。体属
语法:font-style:样式的体属取值
说明 :样式的取值有3种:
normal是默认正常的字体;
italic以斜体显示文字;
oblique属于中间状态,
实例:
<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"><!--.h { font-family: "宋体"; font-size: 14px; font-weight: bold;}--></style></head><body><span class="h">产品涉及充电手电筒,体属则使用font-family属性
。体属可以看到正文字体加粗了。体属font-family: "字体1"
