zoukankan      html  css  js  c++  java
  • 装饰性属性

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

  • 相关阅读:
    CentOS 7 安装java 环境
    CentOS 7 替换网易yum 源
    九度:题目1553:时钟
    Maximum Subarray
    职场细节
    poj2524 Ubiquitous Religions
    九度 1526:朋友圈
    程序载入
    设备管理
    操作系统系列
  • 原文地址:https://www.cnblogs.com/wzndkj/p/10348456.html
Copyright © 2011-2022 走看看