gpt4 book ai didi

html - Bootstrap 4 : Button with Icon and text

转载 作者:太空狗 更新时间:2023-10-29 16:51:26 26 4
gpt4 key购买 nike

我正在尝试使用 Bootstrap 4 创建按钮,如下所示:

enter image description here

图标(字体很棒)应该以文本为中心,并且所有图标在屏幕上都具有相同的 y 位置。按钮的边框应该是不可见的。

我必须使用按钮还是使用其他元素更好?欢迎任何帮助。

最佳答案

使用 Bootstrap 4 和 Font-Awesome,如果您想将图标放在文本的左侧,请使用以下代码片段

<button class="btn btn-lg" style="background-color:transparent;">
<i class="fa fa-pencil"></i> Edit
</button>

关于html - Bootstrap 4 : Button with Icon and text,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47061211/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com