Change the icon size of AngularJS Material icons

前端 未结 9 1589
不思量自难忘°
不思量自难忘° 2020-12-25 10:11

I have referenced then declared an icon

face

But how can I change the icon size?

On of

9条回答
  •  时光取名叫无心
    2020-12-25 10:26

    I followed the answer delivered by Claudios and had to do an additional change. I am using MDL and for the icon to be centered in a button it was necessary to change position left property (default is left:50%).

    CSS:

    .material-icons.md-36 { 
    font-size: 36px; 
    position: absolute;
    left: 40%;
    }
    

    And in HTML:

    face
    

提交回复
热议问题