字体大小自动调整以适应 [英] Font size auto adjust to fit
本文介绍了字体大小自动调整以适应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想做标题说的。我看到 font-size
可以是一个百分比。所以我的猜测是 font-size:100%;
会这样做,但没有。
I'm trying to do what the title says. I've seen that font-size
can be a percentage. So my guess was that font-size: 100%;
would do it, but no.
示例: http://jsfiddle.net/xVB3t/
我可以
推荐答案
这个问题可能会帮助你,但我警告你,虽然这通过jQuery解决它:
This question might help you out but I warn you though this solves it through jQuery:
祝你好运。
The OP of that question made a plugin, here is the link to it (& download)
BTW我建议使用jQuery,因为 Gaby指出这不能通过CSS只做,你说你愿意使用js ...
BTW I'm suggesting jQuery because as Gaby pointed out this can't be done though CSS only and you said you were willing to use js...
这篇关于字体大小自动调整以适应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文