代码
<ul id="progressbar" class="progressbar3"> <li class="active">步骤1</li> <li class="">步骤2/li> <li class="">步骤3</li> </ul>
css 样式:
#progressbar { margin-bottom: 30px; overflow: hidden; /*CSS counters to number the steps*/ counter-reset: step; } #progressbar li { list-style-type: none; color: #333333; text-transform: uppercase; font-size: 14px; width: 33.33%; float: left; position: relative; text-align: center; } .progressbar3 li{width: 33.33%!important;} .progressbar4 li{width: 25%!important;} .progressbar5 li{width: 20%!important;} #progressbar li:before { content: counter(step); counter-increment: step; width: 30px; line-height: 30px; display: block; font-size: 14px; color: #333; background:#e2e9ea; border-radius: 3px; margin: 0 auto 5px auto; } /*progressbar connectors*/ #progressbar li:after { content: ''; width: 100%; height: 2px; background: #e2e9ea; position: absolute; left: -50%; top: 13px; z-index: -1; /*put it behind the numbers*/ } #progressbar li:first-child:after { /*connector not needed before the first step*/ content: none; } #progressbar li.active{ } #progressbar li.active:before, #progressbar li.active:after{ background: #009688; color: white; }
一片空白 5.8万
父爱如山,不善表达。回想十多年前,总记得父亲有个宽厚的肩膀,小小的自己跨坐在上面,越过人山人海去看更广阔的天空,那个时候期望自己有一双翅膀,能够像鸟儿一样飞得高,看得远。虽然父亲有时会和自己开玩笑,但在做错事的时候会受到严厉的训斥。父亲有双粗糙的大手掌。