简体   繁体   English

cufon帮助嵌入2种字体而忽略第一条规则

[英]cufon help embedding 2 fonts ignoring first rule

I am currently try and cufon to lots of text on my website, however when I implement Cufon on the second cufon.register() seems to fire and it overwrites the first, my code looks like below 我目前正在尝试在网站上输入大量文本,但是当我在第二个cufon.register()上实现Cufon时,似乎会触发并覆盖第一个,我的代码如下所示

Cufon.replace('nav a, h1', {"font-family":"Typewriter"}); // Works without a selector engine
Cufon.replace('p', {"font-family":"Segoe Print"}); // Works without a selector engine

刷新您的cufon

Cufon.refresh('nav a, h1');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM