如何从第一个元素中删除伪元素样式?

时间:2014-09-08 01:19:38

标签: html css

有人可以帮我弄清楚如何从左边删除第一行,如下一个img所示

enter image description here

这是我的CSS代码:

.col-sm-6:after {
    content: "";
    width: 1px;
    background: none repeat scroll 0% 0% #DDD;
    height: 100%;
    position: absolute;
    top:0;
    left: 0px;
    right: 0px;
    overflow: hidden;
}

1 个答案:

答案 0 :(得分:0)

你去:

.col-sm-6:first-child:after {
    height: 0;
}

<强> jsBin demo

相关问题