更改 sifr 文本的字体大小
有没有办法在渲染后改变 sIFR 文本的字体大小? 我正在创建一个虚拟海报模型,我希望能够让用户动态更改文本的大小(并且无需刷新)。
我尝试过更改基本文本的字体大小并更改 .sifr-root 和 .sifr-active 的 CSS,但似乎无法使其工作。
Is there any way to alter the font size of sIFR text after it has been rendered? I am creating a virtual poster mock-up, and I want to be able to have the user alter the size of the text on the fly (and without a refresh).
I've tried altering the font-size of the base text and changeCSS of the .sifr-root and .sifr-active, but can't seem to get it to work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前,除了删除替换内容并用不同的大小再次替换文本之外,无法更改字体大小。
There currently is no way to change the font size, other than removing the replacement and replacing the text again with a different size.
此页面记录了 sIFR v3 讨论文本缩放,并带有一些可怕的警告......但也许它适用于您的用例,并且值得测试吗?
This page documenting sIFR v3 talks about text scaling, with some dire warnings ... But perhaps it works for your use case, and is worth testing?