WordPress进度条加载到快速,加载后不会消失

时间:2015-09-01 11:57:39

标签: javascript jquery wordpress-plugin wordpress

我正在使用WordPress管理网站上的内容,我最近安装了一个名为Progress Bar的WordPress插件,以显示其中一个页面上加载内容的进度。但是我一直试图为前者应用一些css样式和java函数。我可以在页面的任何位置浮动进度条,但我不能减慢加载条的速度。一旦满载,我也无法让酒吧消失。你能帮忙吗?以下是包含我的代码的片段:

$("#locator").animate({
    width: "100%"
}, 20000, function() {
    $(#locator).closest('#locator').fadeOut();
});
#locator { position:absolute; visibility:show; left: 380px; top: 330px; z-index:200; }
<div id="locator">[wppb progress=100 option="animated-candystripe orange"]</div>

2 个答案:

答案 0 :(得分:0)

一个明显的问题是你缺少引号:

$('#locator').closest('#locator').fadeOut();

答案 1 :(得分:0)

所以我最终决定最好的方法是用CSS隐藏进度条,因此我从ui.R创建了一个外部CSS样式表,称为它。这是CSS代码:

style.css

.shiny-file-input-progress {display: none}