
step进度条
实现的方法很简单可以用自己熟悉的text-align:justify;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style> .step{ width:300px; height:30px; margin:20px auto 0; text-align: justify; } .step i{ width:20px; height:20px; background: red; color: text-align: center; display: inline-block; } .step:after{content:"";} .step:after, .step b{ display: inline-block; position: relative; top:-25px; *top:-9px; width:100%; height:1px; overflow: hidden; font-size:0; line-height:0; background-color: z-index: -1; *zoom:1; } </style> </head> <body>
<div class="step"> <i>1</i> <i>2</i> <i>3</i> <i>4</i> <i>5</i> </div>
</body> </html>
|
近期评论