当前位置: 代码迷 >> HTML/CSS >> font有关问题目
  详细解决方案

font有关问题目

热度:386   发布时间:2012-02-20 21:18:25.0
font问题目
以下代码为什么font-size要设为76%,   而不设为其它的百分比呢,70EM相当于多少像素?

body   {
padding:0;
color:#444;
font:76%/1.5   "Lucida   Grande ",Geneva,Verdana,Arial,Helvetica,sans-serif;
}

/*
=Main   layout
*/
#wrap   {
position:relative;
min-width:600px;
max-width:70em;
margin:0   auto;
padding:7px   15px   0;
background:#fff;
}

------解决方案--------------------
76%只是一个估计值

70EM是70个字符高,如果你的font-size 是12px,那么就是70*12px,如果是14px,那就是70*14px
  相关解决方案