ie8css无效,CSS 伪类在IE8中样式无法生效

写了一个纯CSS的竖版流程样式,效果如下

c1dac3c163fd18423fbdb386406cb931.png

  1. 起始
  2. 1
  3. 2
  4. 结束

使用:before生成左侧圆,首尾两头的li用:after生成竖条,其余都用border-left填补。

伪类绝对定位,首尾li :before做了位置微调。

但在IE8中出现了首尾li的:before失效情况(中间li则正常)

494d506896d8d25b4a50e9e60f8c30d3.png

几次调整css不见成效.....css代码,比较丑....

.case-state>li{

position: relative;

display: block;

height: 40px;

line-height: 40px;

color: #b4e7bf;

font-size: 14px;

padding-left: 10px;

border-left: 5px solid #82d694;

}

.case-state>li:before

{

content: "";

position: absolute;

left: -7px;

top: 16px;

width: 9px;

height: 9px;

border-radius: 50%;

color: #82d694;

border: 2px solid #fff;

z-index: 2;

}

.case-state>li:first-child:before,

.case-state .ing:before,

.case-state .end:before

{

left: -2px;

}

.case-state>li:first-child:after{

content: "";

position: absolute;

left: 0;

top: 5px;

height: 35px;

width: 5px;

border-top-left-radius: 3px;

border-top-right-radius: 3px;

background: #82d694;

}

.case-state .ing,

.case-state>li:first-child,

.case-state .end{

border: 0;

padding-left: 15px;

}

.case-state .ing:after{

content: "";

position: absolute;

left: 0;

top: 0;

height: 35px;

width: 5px;

border-bottom-left-radius: 3px;

border-bottom-right-radius: 3px;

background: #82d694;

}

.case-state .end:after{

content: "";

position: absolute;

left: 0;

top: 0;

width: 5px;

height: 23px;

background: #82d694;

}

.case-detail table{

font-size: 22px;

line-height: 50px;

color: #506173;

}

.case-detail tr>td:first-child{

font-size: 18px;

color: #8c9cad;

}

.case-detail .tr-top td:first-child {

padding-top: 5px;

}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值