我的想法是要选中时在选项的右上角有打钩,但是实际上是在父级的右上角,查了一下absolute确实是这个效果,这就让我也不知道怎么解决这个问题了
.van-col_active {
border: 1px solid #0099ff!important;
&:before{
content: "";
position: absolute;
display: block;
border-top: 12px solid #0099ff;
border-right: 15px solid #0099ff;
border-bottom: 12px solid transparent;
border-left: 15px solid transparent;
border-top-right-radius: 5px;
right: 0;
top: 0;
}
&:after {
content: "√";
position: absolute;
display: block;
top: 0;
right: 1%;
font-family: Glyphicons Halflings;
font-weight: bolder;
font-size: 14px;
line-height: 18px;
transform: scale(1.2, 0.8);
color: #ffffff;
}
span {
color: #0099ff!important;
}
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…