gpt4 book ai didi

css - Bootstrap 3 : Can the Glyphicons be stacked like Font Awesome's icons?

转载 作者:行者123 更新时间:2023-11-28 08:56:01 25 4
gpt4 key购买 nike

是否可以像使用 Font Awesome 的图标那样使用 Bootstrap 来“堆叠”默认字形? Glyphicons 可以这样做吗:http://fortawesome.github.io/Font-Awesome/examples/#stacked还是我必须进行自定义编码?

谢谢!

最佳答案

这是一个更短、更清晰的版本(Bass Jobsen 的解决方案)

CSS

.icon-stack {
position: relative;
}
.icon-stack .glyphicon {
position: absolute;
}

html

<span class="icon-stack">
<i class="glyphicon glyphicon-unchecked"></i>
<i class="glyphicon glyphicon-ok"></i>
</span>

示例

http://jsfiddle.net/58aED/2/

关于css - Bootstrap 3 : Can the Glyphicons be stacked like Font Awesome's icons?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27125679/

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