我试图用类似的东西...的Cufón:行高问题
.cufon-font-style-1 { font-size:40px; line-height:-20px; }
它不是在IE,FF,Chrome的工作......
我改变了我的Docytype并没有什么改变...
我试图用类似的东西...的Cufón:行高问题
.cufon-font-style-1 { font-size:40px; line-height:-20px; }
它不是在IE,FF,Chrome的工作......
我改变了我的Docytype并没有什么改变...
您可以对line-height属性使用负值。看看这个CSS教程
你只要添加*线高度为ie行高和调整高度。当两者都在IE和FF相同只是给容器填充。
根据W3C推荐标准,用于行高的负值是非法:
http://www.w3.org/TR/CSS21/visudet.html#propdef-line-height
据的Cufón维基>的样式
值低于1.2(通常是默认值)表现得好像line-height: 1.2
设定。
https://github.com/sorccu/cufon/wiki/styling
如果你希望你的线高度大于1.2em小,你可能要进入字体.js文件和手动更改ascent
值:
//MyFont_400.js
...
"panose-1":"0 0 0 0 0 0 0 0 0 0",
"ascent":"800", // adjust this value to match your desired line-height
"descent":"-19"
...