【问题标题】:sifr two colourssifr 两种颜色
【发布时间】:2010-10-10 20:39:25
【问题描述】:

我正在使用 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; }']
});

【问题讨论】:

    标签: sifr sifr3


    【解决方案1】:

    试试这个,只需针对每种情况进行替换调用:

    enter code heresIFR.replace(测试,{ 选择器:'p', css: '.sIFR-root { 字母间距: .3;领先:0;背景颜色:#e6e6e6;颜色:#79868e;字体大小:15px;文本对齐:对齐;文本缩进:20px; }' }); sIFR.replace(测试,{ 选择器:'h4', css: '.sIFR-root { 背景色: #e6e6e6;颜色:#79868e;字体大小:14px;文本对齐:右; }' });

    【讨论】:

      猜你喜欢
      • 2023-03-14
      • 1970-01-01
      • 2013-07-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-11-27
      • 2013-08-02
      相关资源
      最近更新 更多