您正在使用,并且在对正在使用的Cufon font
任何更改后需要刷新以生效,因此在您的代码的最后添加此行,即dom
Cufon font
Cufon.refresh();
// other code
$('#' + field + '-gallery, #' + field + '-tag').fadeIn("slow");
Cufon.refresh(); // without this line your dom won't refresh (only for cufon font)
您的所有内容都p
替换为cufon
如下代码,因为Cufon.replace(...)
<p>
<cufon class="cufon cufon-canvas" alt="In " style="width: 20px; height: 16px; ">
<canvas width="33" height="16" style="width: 33px; height: 16px; top: 0px; left: 0px; "></canvas>
<cufontext>In </cufontext>
</cufon>
<cufon class="cufon cufon-canvas" alt="today's " style="width: 65px; height: 16px; ">
<canvas width="78" height="16" style="width: 78px; height: 16px; top: 0px; left: 0px; "></canvas>
<cufontext>today's </cufontext>
</cufon>
....
</p>
关于so的另一个答案。