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, });

我需要在 a binside a spaninside a div... 中设置样式,如果我添加另一个 sIFR.replace(blah ... 它不会工作,它有时会与另一个替换项混淆:S有什么好的参考吗?提前谢谢。

4

2 回答 2

0

我不确定为什么您在使用两个单独的 .replace 声明时遇到问题,但无论如何,我相信您可以使用逗号将它们链接在一个声明中,如下所示:

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 回答
0

thanks a lot, i actually resolved this using

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

the .sIFR-root was the key!

于 2010-04-15T22:11:07.540 回答