排除 Elements 被 cufon 替换?
如果我已设置 cufon 用字体替换所有 h1 元素,我可以排除具有特定类的元素吗?
例如,cufon 会替换页面上除“nocufon”类元素之外的所有 h1 元素。
谢谢
If I have set cufon to replace all h1 elements with a font, can I exclude elements with specific classes?
So for example, cufon replaces all h1 elements on a page except for elements with a class of 'nocufon'.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我还没有对此进行测试,但这应该可以工作
。要使其工作,您可能还必须包含 jQuery 或 MooTools,或其他一些受支持的选择器。 https://github.com/sorccu/cufon/wiki/usage
I have not tested this, but this should work
For this to work, you may also have to include jQuery or MooTools, or some other supported selector. https://github.com/sorccu/cufon/wiki/usage