prefere
V2EX  ›  CSS

小白问题,关于 css 行框高度计算。

  •  
  •   prefere · Aug 24, 2016 · 3547 views
    This topic created in 3550 days ago, the information mentioned may be changed or developed.

    p 元素的字体大小 12px ;行高 12px ;

    内嵌 span 元素,字体大小 24px ;

    这个 16px 是怎么算出来的?

        <p style="font-size: 12px; line-height: 12px;border: 1px solid black;">
        which is 
        <span style="font-size: 24px;">strongly emphasized </span>
        and which is </p>
    
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5907 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 02:01 · PVG 10:01 · LAX 19:01 · JFK 22:01
    ♥ Do have faith in what you're doing.