将字体-真棒插入号和插入号向下堆叠相邻

问题描述 投票:0回答:2

我需要类似下面的输出

enter image description here

我的HTML代码如下所示

<div>
    <i class="fas fa-caret-up"></i>
</div>
<div>
    <i class="fas fa-caret-down"></i>
</div>

我的CSS代码如下所示

   .fa, .fas {
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        color: #000;
        font-size: 30px;
        border: 1px solid;
    }

我正在像下面那样获得输出

enter image description here

html css font-awesome
2个回答
1
投票

尝试使用此CSS:


1
投票

尝试一次。.>>

© www.soinside.com 2019 - 2024. All rights reserved.