我正在使用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; }']
});发布于 2011-01-30 14:00:19
试一试,只需对每种情况有一个替换调用:
enter code heresIFR.replace(测试,{选择器:'p',css:'.sIFR-root {字母间距:.3;前导: 0;背景颜色:#e6e6e6;颜色:#79868e;字体大小: 15px;文本对齐:对齐;文本缩进: 20px;}‘} });SIFR.replace(测试,{选择器:'h4',css:'.sIFR-root {背景颜色:#e6e6e6;颜色:#79868e;字体大小: 14px;文本对齐:右;}‘});
https://stackoverflow.com/questions/3902098
复制相似问题