Can I use CSS to add a bullet point to any element?

前端 未结 9 2162
名媛妹妹
名媛妹妹 2020-12-13 23:54

Pretty simple question, but I am not sure if it is possible. I want to add an image to act as a bullet in all

elements. I know I can achieve this b

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 00:40

    The very simple way to create a bullet using the before css is to utilize the font family ... this way there is no need to include any graphics and etc.

    here is the class code:

    .SomeClass:before {
      font-family: "Webdings";
       content: "=  ";
    

    {

提交回复
热议问题