0

sIFR.replace(neutra, { selector: '#nav li', css:[ 'a { color: #ffffff; text-decoration:none; font-size:14px} a:hover { color: #d75a60; text-decoration :underline;}'], wmode: 'transparent', preventWrap: true ,forceWidth: true ,fitExactly: true ,forceSingleLine: true ,offsetTop: 0 ,offsetLeft: 0 ,tuneWidth: 0 ,tuneHeight: 0, });

bそして、私は a の中に aspanをスタイルする必要がありdivます ...そして、別の sIFR.replace(blah... を追加すると、方法が見つかりません.何か参考になりますか?よろしくお願いします。

4

2 に答える 2

0

どうもありがとう、私は実際にこれを使用して解決しました

sIFR.replace(myfont, {
selector: '#right-column h1',
css: [ '.sIFR-root {color: #921c22;}' ]
}); 

これ.sIFR-rootが鍵でした!

于 2010-04-15T22:11:07.540 に答える
0

2 つの別個の .replace 宣言で問題が発生している理由はわかりませんが、いずれにせよ、次のようにコンマを使用して 1 つの宣言内でそれらをチェーンできると思います。

sIFR.replace(neutra, {
  selector: '#nav li, div span b',
  css:[ 'a { color: #ffffff; text-decoration:none; font-size:14px} a:hover { color: #d75a60; text-decoration:underline;}'],
  wmode: 'transparent', preventWrap: true ,forceWidth: true ,fitExactly: true ,forceSingleLine: true ,offsetTop: 0 ,offsetLeft: 0 ,tuneWidth: 0 ,tuneHeight: 0,
});
于 2010-04-15T17:17:56.217 に答える