Using a Glyphicon as an LI bullet point (Bootstrap 3)

前端 未结 6 1130
暖寄归人
暖寄归人 2020-12-13 00:22

How can I change the bullet points in an HTML list and use the glyphicons that come with Bootstrap 3?

So that:



        
6条回答
  •  情深已故
    2020-12-13 00:35

    If you want happen to be using LESS it can be achieved like so:

    li {
        .glyphicon-ok();
    
        &:before {            
            .glyphicon();            
            margin-left:-25px;
           float:left;
        }
    }
    

提交回复
热议问题