jquery实现loading...提示

来源:互联网 发布:matlab 0矩阵 编辑:程序博客网 时间:2024/05/16 15:17
代码实现过程

html:

<div id="progressBar">数据加载中,请稍等...</div>

css:

#progressBar { margin: 0; font-size: 12px; line-height: 100%; font-family: Arial, sans-serif; border: solid 2px #86A5AD; background: white url(images/load.gif) no-repeat 10px 10px; display: block; width: 148px; height: 28px; position: fixed; top: 50%; left: 50%; margin-left: -74px; margin-top: -14px; padding: 10px 10px 10px 50px; text-align: left; line-height: 27px; font-weight: bold; position: absolute; z-index: 2001; }

javascript:

$('#progressBar ').fadeOut(600);