如何实现如下图的消息提示呢?
很简单,代码如下:
<div class="container"> <button class="btn btn-default btn-lg btn-link" style="font-size:36px;"> <span class="glyphicon glyphicon-comment"></span> </button> <span class="badge badge-notify">4</span> </div>
css样式:
/* CSS used here will be applied after bootstrap.css */ .badge-notify{ background:red; position:relative; top: -20px; left: -35px; }
可以在下面网站去演示:
http://www.bootply.com/7teIvGLIzY
文章的脚注信息由WordPress的wp-posturl插件自动生成