您正在使用Cufon font
之後被刷新正在使用Cufon font
需要dom
任何改變就可以使用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>
Another answer on so。
嘗試在該腳本標記中添加'type =「text/javascript」' – 2012-07-27 19:03:57
$('。hider:visible')'返回'[]'在站點中。 – 2012-07-27 19:04:20
嘗試在站點中運行時console.log(randomIndex);'始終打印1。 – axcdnt 2012-07-27 19:10:30