进度导航条(仿 雅虎 找回密码功能)

进度条代码:

<table width="800" cellpadding="0" cellspacing="0" border="0"
   id="progressBar">
   <tr valign="center">
    <td id="step_0">
     <p>
      Your Progress
     </p>
    </td>
    <td id="steps">
     <table width="100%" cellpadding="0" cellspacing="0" border="0">
      <tr valign="center">
       <td id="step_1">
        <p>
         What did you forget?
        </p>
       </td>
       <td id='arrow_1'>
        &nbsp;
       </td>
       <td id="step_2">
        <p>
         Verify your identity
        </p>
       </td>
       <td id='arrow_2'>
        &nbsp;
       </td>
       <td id="step_3">
        <p>
         Reset your password
        </p>
       </td>
       <td id='arrow_3'>
        &nbsp;
       </td>
      </tr>
     </table>
   </tr>
  </table>

 

主要是设置每个页面的CSS

 第一步:    What did you forget?

<style type="text/css"> 
#progressBar{
  padding-bottom:0.5em;
  border:1px solid #6666cc;
}
#progressBar p{
  font-weight:bold;
  padding-top:2px;
  padding-right:0;
  padding-bottom:2px;
  padding-left:0;
  text-align:center;
}
#steps{
  padding:2px;
  background-color:white;
}
#step_0{
  padding:2px 0.5em 2px 0;
}
#step_1{
  text-align:center;
  background-color:#6666CC;
  color:#fff;
}
#step_1 p{
  padding-top:2px;
  padding-right:0;
  padding-bottom:2px;
  padding-left:5px;
}
#step_2{
  text-align:center;
  background-color:#CCCCFF;
  color:#fff;
}
#step_3{
  text-align:center;
  background-color:#CCCCFF;
  color:#fff;
}
#arrow_1{
  background: #ccccff url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) -2333px 50%;
  width:30px;
}
#arrow_2{
  background: #ccccff url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) -3110px 50%;
  width:30px;
}
#arrow_3{
  background: #ccccff url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) -795px 50%;
  width:20px;
}
</style>

 

第二步: Verify your identity


<style type="text/css">
#progressBar{
  padding-bottom:0.5em;
  border:1px solid #6666cc;
}
#progressBar p{
  font-weight:bold;
  padding:2px 0;
  text-align:center;
}
#steps{
  padding:2px;
  background-color:white;
}
#step_0{
  padding:2px 0.5em 2px 0;
}
#step_1{
  text-align:center;
  background: #CCCCCC;
  color:#fff;
}
#step_2{
  text-align:center;
  background: #6666cc;
  color:#fff;
}
#step_2 p{
  padding:2px 0 2px 0;
}
#step_3{
  text-align:center;
  background: #ccccff;
  color:#fff;
}
#arrow_1{
  background: #CCCCCC url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) -3890px 50%;
  width:30px;
}
#arrow_2{
  background: #6666cc url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) -2333px 50%;
  width:30px;
}
#arrow_3{
  background: #ccccff url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) -792px 50%;
  width:20px;
}
</style>

 

第三步:Reset your password

<style type="text/css">
#progressBar{
  padding-bottom:0.5em;
  border:1px solid #6666cc;
}
#progressBar p{
  font-weight:bold;
  padding:2px 0;
  text-align:center;
}
#steps{
  padding:2px;
  background-color:white;
}
#step_0{
  padding:2px 0.5em 2px 0;
}
#step_1{
  background: #CCCCCC;
  color:#fff;
}
#step_2{
  background: #CCCCCC;
  color:#fff;
}
#step_3{
  background: #6666cc;
  color:#fff;
}
#step_3 p{
  padding:2px 0 2px 0;
}
#arrow_1{
  background: #CCCCCC url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) -1550px 50%;
  width:30px;
}
#arrow_2{
  background: #CCCCCC url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) -3890px 50%;
  width:30px;
}
#arrow_3{
  background: #6666cc url(https://s.yimg.com/lq/i/reg/ar_progress_sprite.png) no-repeat -35px 50%;
  width:20px;
}
 </style>

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值