为了账号安全,请及时绑定邮箱和手机立即绑定

css3流式布局中的设计问题?

css3流式布局中的设计问题?

白板的微信 2018-08-24 10:18:35
"When calculating a line-height, the context becomes the font-size of that element."用的设计公式:target / content = result;应用:body中使用 font-size:62.5%;(1em = 10px; 即10px / 16px = 62.5%);为什么上面那句英文说the context becomes the font-size of that element?
查看完整描述

1 回答

?
森栏

TA贡献1810条经验 获得超5个赞

根本不是文字撑开了div的高度,而是line-height,而line-height是根据font-size设置的

查看完整回答
反对 回复 2018-09-02
  • 1 回答
  • 0 关注
  • 845 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信