How to automatically add » (») to
  • elements using CSS?
  • 后端 未结 2 810
    滥情空心
    滥情空心 2020-12-23 09:04

    I want to automatically add the HTML character » (») to the left of each li element.

    What would be the best practise?

    I w

    2条回答
    •  轻奢々
      轻奢々 (楼主)
      2020-12-23 09:34

      I found the above answer didn't work for me, but the following does:

      li:before{
         content: "\00BB";
      }
      

      This uses the hexadecimal code for » instead.

      A nice hexadecimal converter can be found here.

      Hope this helps someone :)

    提交回复
    热议问题