So the title is not the best but I'm actually trying to modify the font-size
of this text:
<i class="fa fa-line-chart" aria-hidden="true"></i>Containers graphics<i class="fa fa-line-chart" aria-hidden="true"></i>
I have tried to put <p> Containers graphics </p>
but then the icons where one upside and one downside the text...
Thank you for your help and ideas
只需将<span
放上font-size
<i class="fa fa-line-chart" aria-hidden="true"></i><span style="font-size:20px">Containers graphics</span><i class="fa fa-line-chart" aria-hidden="true"></i>
Just add display:inline to the css.
like that:
.fa{display:inline;} a{display:inline;}
Of course you better add classes specific to those elements so it wont effect every .fa and every a element.
Try this css
.container { font-size: 20px; } .container i { font-size: 30px; }
<div class="container"> <i class="fa fa-line-chart" aria-hidden="true">Ico</i>Containers graphics<i class="fa fa-line-chart" aria-hidden="true">Ico</i> </div>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.