大佬教程收集整理的这篇文章主要介绍了html – 如何在引导符号上添加一个环,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
请参阅工作片段.
/**CSS FOR THE RING**/ .glyphicon-ring { width: 60px; height: 60px; border-radius: 50%; border: 4px solid white; color: white; display: inline-table; text-align: center; } /**CSS FOR ICON WITH NO BACKGROUND COLOR**/ .glyphicon-ring .glyphicon-bordered { font-size: 20px; vertical-align: middle; display: table-cell; } /**WITH AN ADDED BACKGROUND COLOR**/ .glyphicon-white { BACkground: white; color: black; border: 4px solid black; } .glyphicon-teal { BACkground: teal; color: orange; } .glyphicon-red { BACkground: red; }
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> <hr> <div class="container-fluid text-center"> <div class="row"> <div class="col-sm-3"> <div class="alert alert-success"> <div class="glyphicon-ring"> <span class="glyphicon glyphicon-pencil glyphicon-bordered"></span> </div> </div> <h4>Transparent Defaults</h4> </div> <div class="col-sm-3"> <div class="alert alert-warning"> <div class="glyphicon-ring glyphicon-white"> <span class="glyphicon glyphicon-pencil glyphicon-bordered"></span> </div> </div> <h4>BACkground Color + Icon Color + Border Color</h4> </div> <div class="col-sm-3"> <div class="alert alert-danger"> <div class="glyphicon-ring glyphicon-red"> <span class="glyphicon glyphicon-pencil glyphicon-bordered"></span> </div> </div> <h4>BACkground Color + Default Icon Color</h4> </div> <div class="col-sm-3"> <div class="alert alert-info"> <div class="glyphicon-ring glyphicon-teal"> <span class="glyphicon glyphicon-pencil glyphicon-bordered"></span> </div> </div> <h4>BACkground Color + Icon Color</h4> </div> </div> </div> <hr>
以上是大佬教程为你收集整理的html – 如何在引导符号上添加一个环全部内容,希望文章能够帮你解决html – 如何在引导符号上添加一个环所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。