prefere
V2EX  ›  CSS

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

  •  
  •   prefere · Aug 24, 2016 · 3610 views
    This topic created in 3583 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   ·   2732 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: ea3a8c69 · 27ms · UTC 15:39 · PVG 23:39 · LAX 08:39 · JFK 11:39
    ♥ Do have faith in what you're doing.