li:before{ content: “■”; } How to Encode this Special Character as a Bullit in an Email Stationery?

前端 未结 6 1215
小鲜肉
小鲜肉 2021-01-30 04:00

After proudly coloring my liststyle bullet without any image url or span tags, via:

ul{ list-style: none; padding:0;  margin:0;  }
li{ padding-left: 1em; text-in         


        
6条回答
  •  花落未央
    2021-01-30 04:19

    You ca try this:

    ul { list-style: none;}
    
    li { position: relative;}
    
    li:before {
        position: absolute;  
        top: 8px;  
        margin: 8px 0 0 -12px;    
        vertical-align: middle;
        display: inline-block;
        width: 4px;
        height: 4px;
        background: #ccc;
        content: "";
    }
    

    It worked for me, thanks to this post.

提交回复
热议问题