简体   繁体   English

Fontawesome图标宽度100%宽度vue fontawesome组件

[英]Fontawesome icon width 100% width vue fontawesome component

We are using fontawesome in a vue project with the official vue-fontawesome component.我们在一个带有官方vue-fontawesome组件的 vue 项目中使用 fontawesome。

I want the icon to be adjusted to the width of the parent box (width=100%).我希望将图标调整为父框的宽度(宽度= 100%)。

How to do?怎么做?

Ok, i find a solution.好的,我找到了解决方案。 I have to set width:100% AND height:100% or height:auto;我必须设置width:100% AND height:100%height:auto;

<font-awesome-icon icon="blender-phone" style="width:100%; height:auto;"/>

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

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