Twitter-bootstrap自定义图标位置不起作用

时间:2015-07-26 04:36:50

标签: html css twitter-bootstrap

我是Angular的新手,我在页面设计中使用了Bootstrap,但是默认的glyphicon图标...... huuum ... well 我已经阅读了这篇教程http://favbulous.com/post/1006/create-custom-icons-for-twitter-bootstrap-easily但不适合我。它显示的图标,但位置不是我想要的,图标显示文本的顶部不在左边。我有这个代码

<a href="" ng-click="logout()"><i class="rpe rpe-user"></i> Logout </a>

图标位于文本顶部

使用glyphicon效果很好

<a href="#!/informeCobro"><span class="glyphicon glyphicon-off"></span> Mantenimientos </a>

enter image description here

谢谢!

1 个答案:

答案 0 :(得分:1)

尝试添加

 display: inline-block;

到你的班级图片