SIFR 3 text resizing to fit width

拜拜、爱过 提交于 2019-12-14 03:05:28

问题


I'm using sifr 3 and trying to fit h1's on a single line but within a set width of 400px. By default, if there's too much text, it drops onto the next line. I've used forceSingleLine: true but then the text just stretches across the 400px width. Is there a method which will resize the text to fit in the width AND stay on a single line?

Thanks


回答1:


This was the behavior of sIFR 2, which resulted in inconsistent font sizes. This has been fixed in sIFR 3, so what you're trying to achieve is only possible in sIFR 2.




回答2:


But what about the sIFR3 attribute "fitExactly", then?



来源:https://stackoverflow.com/questions/797244/sifr-3-text-resizing-to-fit-width

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!