zoukankan      html  css  js  c++  java
  • line hegiht em

    http://www.jb51.net/css/6732.html
    ---------------
    7.3.3行高的计算与继承 以em、ex和百分比为单位的行高,其基数是元素本身的字体尺寸。例如有代码如下: <pstyle="font-size:20px;line-height:2em;">字高20px,行高2em。</p> <pstyle="font-size:30px;line-height:2em;">字高30px,行高2em。</p> 2个段落的行高都为2em,但是字体大小不同,因此显示如图7-23所示。 图7-23行高的计算 行高可以设定得比字体高度小,此时多行的文字将叠加到一起,例如有如下代码,其显示如图7-24所示。 p{ font-size:20px; line-height:10px; } <p>字高20px,行高10px。此时多行的文字将叠加到一起。</p>

  • 相关阅读:
    Vivian's Problem UVA
    Prime k-tuple UVA
    M
    Make a Crystal UVA
    Cryptography Reloaded UVALive
    Gauss Prime UVA
    Discrete Square Roots UVALive
    The Bells are Ringing UVALive
    Huge Mods UVA
    指数循环节
  • 原文地址:https://www.cnblogs.com/qinqiu/p/4512488.html
Copyright © 2011-2022 走看看