首页 > 其他 > 详细

装饰性属性

时间:2019-02-02 15:03:53      阅读:156      评论:0      收藏:0      [点我收藏+]

字重(粗体) 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的值是不定的,一般取决于父级继承下来是多少。实际使用中也用的比较少

装饰性属性

原文:https://www.cnblogs.com/wzndkj/p/10348456.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!