How to make double lines border in CSS, each line in different color, without using background image?

前端 未结 11 970
广开言路
广开言路 2020-12-24 12:38

How to make a double line border in CSS, each line in a different color without using background-image?

For example like this:

11条回答
  •  忘掉有多难
    2020-12-24 13:22

    Have you try add a between

    and

    with the following css:

    span {
    height:0;
    border-top:blue;
    border-bottom:#ff0000;
    line-height:0;
    }
    

提交回复
热议问题