0
.left_data{
    width:60%;
    float:left;
    position: relative;
    height:400px;
    background: #f00;
    border: 4px solid #f00;
    -webkit-box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.66);
    -moz-box-shadow:    0px 0px 14px rgba(0, 0, 0, 0.66);
    box-shadow:         0px 0px 14px rgba(0, 0, 0, 0.66)
    }

.left_data:after, .left_data:before {
    left: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
}

.left_data:after {
    border-color: rgba(255, 255, 255, 0);
    border-left-color: #f00;
    border-width: 30px;
    top: 20%;
    margin-top: -30px;
}
.left_data:before {
    border-color: rgba(255, 255, 255, 0);
    border-left-color: #f00;
    border-width: 36px;
    top: 20%;
    margin-top: -36px;
}

我需要通过 jquery 选择这些类来编辑它们 .left_data:after , .left_data:before 我尝试使用此代码但我收到错误

$(".left_data:after").css("border-left-color","#FFF");
4

0 回答 0