glyphicons icons not get suitable for chrome

强颜欢笑 提交于 2019-12-12 04:58:06

问题


Below is the chrome view of my page. here image/icon sides not show well

But i make mouse-over/hover on that image/link or change window width manually, its display correctly like below. but its work fine in Firefox

this is the html code i using

<li><a class="glyphicons display" href=""><i></i>Dashboard</a></li>

回答1:


This is a common problem with chrome instead use another icon font like Fontawesome http://fortawesome.github.io/Font-Awesome/

Fontawesome is compatible with all browsers above IE7. Fontawesome has a lot of cool icons. and it's fairly new.

http://fortawesome.github.io/Font-Awesome/icons/

for the icons you need look at:

http://fortawesome.github.io/Font-Awesome/icon/cogs/

http://fortawesome.github.io/Font-Awesome/icon/desktop/

You can then use them like this: <i class="icon-desktop"></i> icon-desktop etc.



来源:https://stackoverflow.com/questions/16837859/glyphicons-icons-not-get-suitable-for-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!