sIFR 3 大写

标签 sifr

有人可以解释一下我如何实现文本转换:大写; 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/

相关文章:

sifr - sIFR是否支持像:first-child?这样的伪元素

html - 主菜单中的 sIFR

javascript - sIFR 导致初始页面加载停止?

javascript - javascript 函数中的 sIFR 和 document.write

javascript - sIFR 字体大小问题

css - SIFR 3 : IE6 Extra Spacing

css - sIFR 2.0.7 缩放文本而不是环绕文本

jquery - sIFR swf 实现问题

CSS 菜单在 IE 中的 siFR 标题中断

javascript - sIRF,需要一些帮助