加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-17 20:51:39 所属栏目:安全 来源:网络整理
导读:使用Bootstrap 3,什么可能是一个很好的方法来获得带有贴图标签的边框标签? Stack Overflow中的一个例子: 解决方法 我结束了 http://jsfiddle.net/7zkCU/30/(改编自 http://maxwells.github.io/bootstrap-tags.html): span class="tag label label-info"
使用Bootstrap 3,什么可能是一个很好的方法来获得带有贴图标签的边框标签? Stack Overflow中的一个例子:

解决方法

我结束了 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;
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读