简体   繁体   English

reactJS Material UI字体图标集大小

[英]reactJS Material UI Font Icon set size

is there a way to make the font icon smaller in size? 有没有办法让字体图标变小?

I have tried the code below but it doesn't seem to work. 我已经尝试过下面的代码,但似乎没有用。

<FontIcon className='fa fa-quote-left' style={{ fontSize: '50px' }} />

尝试使用材料图标字体:

<FontIcon className="material-icons" style={{fontSize: '32px'}}>home</FontIcon>

Font Awesome, also import the font via stylesheet: Font Awesome,也可以通过样式表导入字体:

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

<FontIcon className="fa fa-star" style={{fontSize: '58px'}}></FontIcon>

material-ui图标文档建议使用其属性'fontSize';

<FontIcon className="material-icons" fontSize="large">home</FontIcon>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM