text-align syntax for sifr?

text-align syntax for sifr?

清风夜微凉 发布于 2021-11-27 字数 339 浏览 897 回复 2 原文

I'm having trouble finding usage/syntax for the text-align feature of sifr. This feature goes inside the flashvars parameter correct? So would it be something like:

sIFR.replace(fontname, {
selector: 'h1',
wmode: 'transparent',
flashvars: 'textalign=center'

I tried the above with no luck using r436 build.

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。



需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。


眉目亦如画i 2022-06-07 2 楼

You're confusing sIFR 2 and 3 syntax. flashvars no longer exists, for sIFR 3 specify it in the replacement CSS:

sIFR.replace(fontname, { selector: 'h1', css: '.sIFR-root { textalign: center; }' });

You can also specify background-color here, so you don't need to use transparency.

雨轻弹 2022-06-07 1 楼

Apparently you only need to edit the all.css file. Here's someone talking about this.

If you don't want to change the css styling of a root element, then you can specify what CSS selection you are applying your sifr is referring to with the sSelector