[英]Change MaterialUI icons font size in css
So here I am trying to increase my icons value 200px, but by default its taking 24px
.所以在这里我试图将我的图标值增加 200px,但默认情况下它采用
24px
。 24px is the the default for all icon in google icons. 24px 是谷歌图标中所有图标的默认值。 So any suggestion!
所以任何建议!
HTML HTML
<div class="col span-1-of-4 box">
<i class="material-icons abcd">featured_play_list</i>
<h3>BBBB BBB BBBB</h3>
<p>
XXXXX XXXXX XXXXX XXXXX XXXXX XXXXX
</p>
</div>
CSS CSS
.abcd{
font-size: 200px;
display: block;
color:#e67e22;
margin-bottom: 10px;
}
MaterialUI icons use the default size 24px
. MaterialUI 图标使用默认大小
24px
。 If you want to change this size without using the icons size classes provided by M-UI like .md-18
, you will have to use the !important
rule:如果您想在不使用 M-UI 提供的图标大小类(如
.md-18
情况下更改此大小,则必须使用!important
规则:
.abcd{
font-size: 200px !important;
display: block;
color:#e67e22;
margin-bottom: 10px;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.