Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一个网站上是否可以有多个 Cufon 字体?如果是这样,怎么做?
对的,这是可能的。将多个字体文件链接到页面。并使用 fontFamily 属性调用 Cufon.replace。例子:
Cufon.replace('div.contactus-slogan', { fontFamily: "Myriad Pro" }); Cufon.replace('div.slogan-left-content h1', { fontFamily: "Myriad Pro Light" });