Colouring a specific character through CSS

后端 未结 5 1433
生来不讨喜
生来不讨喜 2021-01-27 03:17

What I am after is to colour in just one character of my code throughout the page.

The lines between each of the words are what I would like to be a different colour fro

5条回答
  •  心在旅途
    2021-01-27 04:11

    If you wrap each of the | character in a span with a class you can use that:

    |
    
    .separator {
        color: #0F0;
    }
    

提交回复
热议问题