我想将Font Awesome图标的高度和宽度设置为其父容器的完整宽度和高度。
CSS
.icon-container {
width:30px;
height:30px;
}
.fa-facebook-square {
//what should be here
//font-size is not working properly in this scenario
}
HTML
<div class="icon-container">
<i class="fab fa-facebook-square"></i>
</div>
检查此->https://jsfiddle.net/2na108rc/1/
<i class="fab fa-facebook-square"></i>
.fa-facebook-square {
font-size: 200px;
font-weight: 900;
}