我想在Bootstrap按钮中使用自定义图标,这是HTML部分:
<button class="btn btn-info pull-right toggle" data-pausetext="Break In"
data-resumetext="Resume" ><i class="icon-play"></i> Clock In</button>
在样式表中添加如下内容:
.icon-play {
background-image : url(../img/Clock-Play.png) no-repeat;
background-position: center center;
}
但是图标没有显示在按钮内部...请帮忙...谢谢。