[英]Change the font-size in grid system
I'm using the grid system to show 7 little images with a number next to each one of the images and it should be like this .我使用的是网格系统显示7张与一些小图片图像的每一个靠近它应该像这样。 In this first example i didn't use the grid system but it was much more complicated and it took me 60 - 120 minutes to do it and using the grid system i took less than 10 minutes BUT i can't resize the font.
在第一个示例中,我没有使用网格系统,但它要复杂得多,我花了 60 - 120 分钟来完成,使用网格系统我花了不到 10 分钟,但我无法调整字体大小。 Have a look here
看看这里
I tried overwriting any possible font-size attribute, and i also tried giving more classes to the divs and changing the font-size.我尝试覆盖任何可能的字体大小属性,我还尝试为 div 提供更多类并更改字体大小。
NOTE: I could easily change the font-family though.注意:虽然我可以轻松更改字体系列。
<div class="container" style="float: left; font-family: 'Germania One', cursive;"> <div class="row"> <div class="col"> <img src="forca.png" alt=""> 2 </div> <div class="col"> <img src="destreza.png" alt=""> 3 </div> <div class="col"> <img src="agilidade.png" alt=""> 2 </div> <div class="col"> <img src="inteligencia.png" alt=""> 8 </div> <div class="col"> <img src="resistencia.png" alt=""> 4 </div> <div class="col"> <img src="fe.png" alt=""> 2 </div> <div class="col"> <img src="carisma.png" alt=""> 4 </div> </div> </div>
<div class="container" style="float: left; font-family: 'Germania One', cursive;"> <div class="row"> <div class="col"> <img src="forca.png" alt=""> <p style="font-size:2em">2</p> </div> <div class="col"> <img src="destreza.png" alt=""> <p style="font-size:2em">3</p> </div> <div class="col"> <img src="agilidade.png" alt=""> <p style="font-size:2em">2</p> </div> <div class="col"> <img src="inteligencia.png" alt=""> <p style="font-size:2em">8</p> </div> <div class="col"> <img src="resistencia.png" alt=""> <p style="font-size:2em">4</p> </div> <div class="col"> <img src="fe.png" alt=""> <p style="font-size:2em">2</p> </div> <div class="col"> <img src="carisma.png" alt=""> <p style="font-size:2em">4</p> </div> </div> </div>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.