装饰性属性
字重(粗體) font-weight
斜體 font-style:itatic
itatic跟意大利很像,最早是來(lái)自于意大利
下劃線 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數(shù)值有100~900,9個(gè)值,200可以,250就不可以。逐漸變粗,但不是每個(gè)字體都支持這9種粗細(xì)的。默認(rèn)的值是多少呢,一般normal是400,bold是700。bolder和lighter的值是不定的,一般取決于父級(jí)繼承下來(lái)是多少。實(shí)際使用中也用的比較少
總結(jié)
- 上一篇: 高并发大流量专题---6、独立图片服务器
- 下一篇: 华夏银行信用卡制卡要多久能到?卡片几天能