带有内部跨度的 sIFR 标头
我遇到了以下情况:
<h2>This text is <span>pretty awesome</span></h2>
我试图给两者提供不同的样式,如下所示(仅CSS):
h2 { font-size: 21px; text-transform: uppercase; line-height: 37px; height: 36px; text-align: right; margin-right: 10px; }
h2 span { font-size: 16px; color: #666666; text-transform: lowercase; }
现在只需像下面的事情一样调用它,并且只显示一般的H2样式:
sIFR.replace(headache, { selector: 'h2', css: ['.sIFR-root { stylesforh2 } '], wmode: 'transparent' });
sIFR.replace(headache, { selector: 'h2 span', css: ['.sIFR-root { stylesforspan } '], wmode: 'transparent' });
这也不起作用:
sIFR.replace(headache, { selector: 'h2', css: ['.sIFR-root { stylesforh2 }, span { stylesforspan} '], wmode: 'transparent' });
我我是 sIFR 新手,我可能做了一些愚蠢的错误,但我无法弄清楚。有人能告诉我它是如何正确完成的吗?
使用 sIFRT 版本 3,修订版 436。
提前 Tnx
I've got the following situation:
<h2>This text is <span>pretty awesome</span></h2>
I'm trying to give both a different style like this (only the css):
h2 { font-size: 21px; text-transform: uppercase; line-height: 37px; height: 36px; text-align: right; margin-right: 10px; }
h2 span { font-size: 16px; color: #666666; text-transform: lowercase; }
Now just calling this like the following things doenst work and only displays the general H2 style:
sIFR.replace(headache, { selector: 'h2', css: ['.sIFR-root { stylesforh2 } '], wmode: 'transparent' });
sIFR.replace(headache, { selector: 'h2 span', css: ['.sIFR-root { stylesforspan } '], wmode: 'transparent' });
neither does this work:
sIFR.replace(headache, { selector: 'h2', css: ['.sIFR-root { stylesforh2 }, span { stylesforspan} '], wmode: 'transparent' });
I'm a sIFR firsttimer and I'm problably doing something silly wrong, but I cant figure it out. Can someone tell me how its done properly?
Using sIFRT version 3, revision 436.
Tnx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
显然它不适用于跨度。与
em
一起解决Aparently it just wont work with span. Got it to with with
em