大佬教程收集整理的这篇文章主要介绍了css – 如何在Font Awesome符号顶部添加徽章?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
但是,我无法理解如何将徽章放在符号的顶部.我的尝试可以在这里找到:jsFiddle.
我想支持Twitter Bootstrap 2.3.2.
HTML
<i class="fa fa-envelope fa-5x fa-border icon-grey badge"></i>@H_607_15@CSS
*.icon-blue {Color: #0088cc} *.icon-grey {Color: grey} i { width:100px; text-align:center; vertical-align:middle; position: relative; } .badge:after{ content:"100"; position: absolute; BACkground: rgba(0,255,1); height:2rem; top:1rem; right:1.5rem; width:2rem; text-align: center; line-height: 2rem;; font-size: 1rem; border-radius: 50%; color:white; border:1px solid blue; }@H_607_15@
以上是大佬教程为你收集整理的css – 如何在Font Awesome符号顶部添加徽章?全部内容,希望文章能够帮你解决css – 如何在Font Awesome符号顶部添加徽章?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。