通过纯css实现圆角的步骤流程效果,扩展性强,可以随意增加减少数量,兼容性ie6+。
具体代码:
ul{margin:0px; padding:0px; list-style:none;}
.wrap{width:960px; height:auto; line-height:30px; margin:100px auto 0;}
.step-case{height:40px;}
.step-case li{ float:left; margin:0px; width:12.5%;position:relative; cursor:pointer;}
.step-case li span{display:block; background-color:#ccc; height:40px; line-height:40px; text-align:center; color:#fff; font-weight:bold;}
.step-case b{position:absolute; font-size:0px; line-height:0px; top:0px;}
.step-case .b-l{border-width:2px 2px 2px 0; border-style:dashed solid dashed dashed; border-color:transparent #ccc transparent transparent; height:36px; left:-2px;}
.step-case .b-r{border-width:2px 0 2px