Ctrl+/
IE11
F11
ESC
PgUp
PgDn
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>进度条</title>
<style type="text/css">
body{margin:0px;padding:0px;}
#ibox{line-height:20px;width:300px;height:20px;background:#ccc;text-align:left;margin:100px auto 0 auto;}
#iLoading{color:#fff;font-size:12px;line-height:20px;width:0px;height:20px;background:red;text-align:center;position: absolute;}
</style>
<script type="text/javascript">
window.onload=function(){
var idiv=document.getElementById('iLoading');
var ibox=document.getElementById('ibox');
var timer=null;
timer=setInterval(function(){
var iWidth=idiv.offsetWidth/ibox.offsetWidth*100;
idiv.style.width=idiv.offsetWidth+1+'px';
idiv.innerHTML=Math.round(iWidth)+"%";
if(iWidth==100){
clearInterval(timer);
}
},1);
</script>
</head>
<body>
<div id="ibox">
<div id="iLoading"></div>
</div>
</body>
</html>
CSS代码...
JS代码...
xxxxxxxxxx