有人可以解释一下我如何实现文本转换:大写; sIFR 3 的功能?
在文档上,它解释了如何使用它,但我真的不知道如何实现它。有人可以举个例子吗?
Specifes text transformation. This is handled by sIFR because Flash does not support this natively. It is applied to all text, if you want to apply it to a specific element you'll need to use the modifyContent function. If sIFR.forceTextTransform is false, sIFR will not perform the transformation.
谢谢
最佳答案
您可以将 text-transform
属性添加到传递给 sIFR.replace
的选项对象的 css
属性中的 CSS 规则方法(呸!)。
一个例子:
sIFR.replace(myFont, {
selector: 'h2',
css: '.sIFR-root { font-size: 20px; color: #008cba; text-transform: uppercase; }',
wmode: 'transparent'
});
关于sIFR 3 大写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1214931/