gpt4 book ai didi

twitter-bootstrap-3 - 如何在 Bootstrap 中创建带有关闭图标的标签?

转载 作者:行者123 更新时间:2023-12-03 08:54:05 25 4
gpt4 key购买 nike

使用 Bootstrap 3,获得带有关闭图标的带边框标签的好方法是什么?来自 Stack Overflow 的这类事情的一个例子:

enter image description here

最佳答案

我最终得到了 http://jsfiddle.net/7zkCU/30/ (改编自 http://maxwells.github.io/bootstrap-tags.html ):

<span class="tag label label-info">
<span>Example Tag</span>
<a><i class="remove glyphicon glyphicon-remove-sign glyphicon-white"></i></a>
</span>

CSS:
.tag {
font-size: 14px;
padding: .3em .4em .4em;
margin: 0 .1em;
}
.tag a {
color: #bbb;
cursor: pointer;
opacity: 0.6;
}
.tag a:hover {
opacity: 1.0
}
.tag .remove {
vertical-align: bottom;
top: 0;
}
.tag a {
margin: 0 0 0 .3em;
}
.tag a .glyphicon-white {
color: #fff;
margin-bottom: 2px;
}

关于twitter-bootstrap-3 - 如何在 Bootstrap 中创建带有关闭图标的标签?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22390272/

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