• The difference of the line-height:2 and line-height:2em


    The difference of the line-height:2 and line-height:2em

    When I make up the www.apple.com/apple-pay/offers/, I need to make a box for "优惠名额已满,感谢再次惠顾", and i need to set up the line-height for the font

    So what's the difference about the two css

    • Line-height:2 is based on the font what is the only themself
    • Line-height:2em is based on the font father element

    we can see the difference from the code
    `

    The difference about the two line-height

    普通文字普通文字普通文字普通文字普通文字普通文字普通文字普通文字普通文字普通文字优惠结束普通文字普通文字普通文字普通文字普通文字普通文字

    普通文字普通文字普通文字普通文字普通文字普通文字普通文字普通文字普通文字普通文字优惠结束普通文字普通文字普通文字普通文字普通文字普通文字

    ` ![](http://images2015.cnblogs.com/blog/1183538/201707/1183538-20170720155112146-584052413.png)
    Damao Zhang Apple HTML Developer RM 2330, ShangDu SOHO, South Tower, N.8 DongDaQiao Road ChaoYang District Beijing 100020 O: +86 10 5869 3315 M: +86 186 3351 1769 www.mullenloweprofero.com
  • 相关阅读:
    html file 表单样式(css过滤器实现)
    网页a标签
    Criteria示例
    数类型转换顺序
    Mysql命令行添加用户
    MySQL中导出用户权限设置的脚本
    mysql 命令行登录详解
    mysql的auto-rehash简介
    UltraEdit中的特殊字符
    ps aux详解(进程状态说明)
  • 原文地址:https://www.cnblogs.com/damaochina/p/7211604.html
Copyright © 2020-2023  润新知