-1
我是building a site與Twitter Bootstrap,並在幾頁上我有一個進度條加載,但隨後它消失。我希望它加載並保持。Boostrap進度條加載,但然後消失
Here's the website以及我所指的頁面。進度條位於右側。
在custom.js
的JavaScript代碼如下:
/* ------------------ Progress Bar ------------------- */
$(function() {
$(".meter > span").each(function() {
$(this)
.data("origWidth", $(this).width())
.width(0)
.animate({
width: $(this).data("origWidth")
}, 1200);
});
});
設置錯誤,仔細檢查 – teemo
你是什麼意思? – GSaunders
請在問題中包含相關代碼(Javascript,HTML片段)或鏈接到一個小的JSFiddle示例。 – nietonfir