css画箭头图标放标题前面,旋转,border的单个边框设置

CSS边框属性_css border dotted_小张biubiu的博客-CSDN博客

你还不知道css的旋转效果怎么实现?来这里看看吧_css旋转效果_我糖呢的博客-CSDN博客

css画箭头图标放标题前面,旋转,border的单个边框设置_第1张图片

.sub-title{
    position: relative;
    margin-left: 59px;
    & span{
        color: #1CDBFE;

    };
    & span::before{
        content: "";
        position: absolute;
        height: 8px;
        width: 8px;
        // background-color: red;
        border-right: 1px solid #1CDBFE;
        border-top: 1px solid #1CDBFE;
        // border: 1px solid;
        left: -20px;
        top: 7px;
        transform: rotate(45deg);
    };
    & span::after{
        content: "";
        position: absolute;
        top: 7px;
        left:-14px;
        height: 8px;
        width: 8px;
        transform: rotate(45deg);
        border-right: 1px solid #1CDBFE;
        border-top: 1px solid #1CDBFE;

    }


}

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