prefere
V2EX  ›  CSS

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

  •  
  •   prefere · Aug 24, 2016 · 3595 views
    This topic created in 3573 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   ·   2794 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 05:33 · PVG 13:33 · LAX 22:33 · JFK 01:33
    ♥ Do have faith in what you're doing.