css实现箭头

.line{
    position: relative;
    width: 100%;
    height: 1px;
    background-color: #00e8ff;
}
.line:after {
    content: "";
    position: absolute;
    right: -5px;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 4px solid #00e8ff;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 4px solid transparent;
}

你可能感兴趣的:(css,css,前端,javascript)