Change the icon size of AngularJS Material icons

前端 未结 9 1545
不思量自难忘°
不思量自难忘° 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:29

    You can use normal css, but must override inline styling with:

    font-size: 50px !important;

    0 讨论(0)
  • 2020-12-25 10:33

    If I'm doing a one-off I usually just add a style= modification to the font-size in the tag. But yes long story short there's no real trick to it other than defining your own size styles to attach in css as a more permanent solution.

    <i class="material-icons" style="font-size: 50px">insert_invitation</i>
    
    0 讨论(0)
  • 2020-12-25 10:39

    There is a size attribute associated with icon tag like check_circle

    so using size attribute, we can change the size of the icons.

    0 讨论(0)
提交回复
热议问题