我使用sifr作为标题,并且想要使用不同的颜色来突出显示某些单词。sifr两种颜色
我想这可能使用sIFR 3及其标记,如EM支持来实现,并发现了一个教程,确认这样的位置:http://justcoded.com/article/two-colors-sifr3/
不过,我遇到一个错误,由此EM标签内的文本是不可见并且标题间隔尽可能不在那里。
HTML:
<h1>Normal Style Here <em>Emphasised here</em> Yet Not here!</h2>
sIFR的-config.js
sIFR.replace(foundrygridnik, {
selector: 'h1', wmode: 'transparent', forceSingleLine: true,
css: ['.sIFR-root {color: #acd037; }',
'em {color: #ffffff; }']
});