prefere
V2EX  ›  CSS

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

  •  
  •   prefere · Aug 24, 2016 · 3982 views
    This topic created in 3742 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   ·   Privacy   ·   Solana   ·   1272 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:18 · PVG 01:18 · LAX 09:18 · JFK 12:18
    ♥ Do have faith in what you're doing.