您正在使用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