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

 "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

阅读 3.1k
1 个回答

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进