运行代码 缩小
汉王
HTML代码
复制 格式化 注释 注释 清空
放大
AخA
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
<html xmlns="http://www.w3.org/1999/xhtml">
3
<head>
4
<title>点击按钮,出现网页进度条</title>
5
<style type="text/css">
6
body,html{margin:0;padding:20px;font-size:12px;font-family:Arial;font:12px/1 Tahoma, Arial;}
7
.stepOut{height:20px;border:1px solid #000;background:#eee;width:200px;overflow:hidden;display:none;}
8
.stepIn{width:50px;background:#FF0080;border-top:1px solid #FFB5DA;border-bottom:1px solid #fff;overflow:hidden;color:#fff;text-align:center;font:12px/1.6 arial;}
9
</style>
10
</head>
11
<body>
12
<button id="google">button</button><br/><br/>
13
<div class="stepOut" id="stepOut" >
14
    <div class="stepIn" id="stepIn"></div>
15
</div>
CSS代码
复制 格式化 注释 注释 颜色 清空
放大
CSS代码...
x
 
1
JS代码
复制 格式化 注释 注释 清空
放大
JS代码...
xxxxxxxxxx
1
 
1
名称
点击按钮,出现网页进度条
分类
网站常用
描述
Js效果实现:点击按钮,出现进度条,单机按钮后,页面会出现1个进度条,或者正在载入中。。。 持续5秒时间,在IE下完全正常,不过好像其它浏览器下没效果,唉~~~
收藏