简体   繁体   English

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

[英]Twitter-bootstrap custom icon position not work

i am new in Angular and i have used Bootstrap in the pages design, but the default glyphicon icons ... huuum ... well I have readed this tutorial http://favbulous.com/post/1006/create-custom-icons-for-twitter-bootstrap-easily but not work for me. 我是Angular的新手,并且在页面设计中使用了Bootstrap,但是默认的glyphicon图标... huuum ...好吧,我已经阅读了本教程http://favbulous.com/post/1006/create-custom-icons轻松进行引导,但对我不起作用。 The icons it's showing but the position is not that i want, the icons shows top of the text not to the left. 它显示的图标,但是位置不是我想要的,图标显示文本的顶部而不是左侧。 I have this code 我有这个代码

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

The icon is on the top of the text 图标在文本顶部

With glyphicon works well 使用glyphicon效果很好

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

在此处输入图片说明

Thanks! 谢谢!

try adding 尝试添加

 display: inline-block;

to your class for image 给你的班上的形象

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM