装饰性属性
字重(粗体) font-weight
斜体 font-style:itatic
itatic跟意大利很像,最早是来自于意大利
下划线 text-decoration
用的比较多的是text-decoration:none
指针 cursor
用的比较多的是cursor:none
font-weight
<style>
.weight {
/* font-weight: bold; */
/* font-weight: bolder; */
/* font-weight: lighter; */
/* font-weight: normal; */
font-weight: 100;
}
</style>
<body class="body" id="body">
<div class="weight">你好 hello world</div>
</body>
font-weight数值有100~900,9个值,200可以,250就不可以。逐渐变粗,但不是每个字体都支持这9种粗细的。默认的值是多少呢,一般normal是400,bold是700。bolder和lighter的值是不定的,一般取决于父级继承下来是多少。实际使用中也用的比较少
总结
- 上一篇: 高并发大流量专题---6、独立图片服务器
- 下一篇: 华夏银行信用卡制卡要多久能到?卡片几天能