bjo*_*k24 6 jquery jquery-plugins
我知道fitText.js和bigText.js,但两者都没有用于多行标题(bigText可以做多行,但你必须在div中包装每行,这在这里不起作用).简单地说,给一个<h1>有width: 200px; height: 175px;是有一个jQuery插件,将动态调整文字大小,直到它的所有可见?
像这样的东西:<h1>My Short Headline</h1>会很大,但是<h1>My Somewhat Longer Headline That Needs To Be Completely Visible With No Truncation</h1>会有一些相当小的东西.知道什么可以做到这一点?
想出了我自己的解决方案:http://jsfiddle.net/bjork24/VQEC9/
现在我只需要把它扔进插件中,我就会好起来的.