อยากทราบวิธีแก้ครับ
โค้ด css
โค้ด: เลือกทั้งหมด
.wizard a span,#active_step{
margin-left: 20px;
}
.wizard{
background: #efefef;
}
.wizard a {
padding: 10px 12px 10px;
margin-right: 5px;
background: #efefef;
position: relative;
display: inline-block;
}
.wizard a:before {
width: 0;
height: 0;
border-top: 25px inset transparent;
border-bottom: 25px inset transparent;
border-left: 20px solid #fff;
position: absolute;
content: "";
top: -3px;
left: 0;
}
.wizard a:after {
width: 0;
height: 0;
border-top: 24px inset transparent;
border-bottom: 24px inset transparent;
border-left: 20px solid #efefef;
position: absolute;
content: "";
top: -2px;
right: -25px;
z-index: 2;
}
.wizard a:first-child:before,
.wizard a:last-child:after {
border: none;
}
.wizard a:first-child {
-webkit-border-radius: 4px 0 0 4px;
-moz-border-radius: 4px 0 0 4px;
border-radius: 4px 0 0 4px;
}
.wizard a:last-child {
-webkit-border-radius: 0 4px 4px 0;
-moz-border-radius: 0 4px 4px 0;
border-radius: 0 4px 4px 0;
}
.wizard .badge {
margin: 0 5px 0 18px;
position: relative;
top: -1px;
}
โค้ด: เลือกทั้งหมด
<div class="wizard">
<?php foreach($this->steps as $k=>$step){?>
<a><?php print $step;?></a>
<?php }?>
</div>