css - 带文本的 Fontawesome 图标的垂直居中

标签 css html firefox font-awesome-4

我试图将 Fontawesome 图标垂直居中。这些图标必须在父元素内居中。问题是,只有当我将鼠标悬停在某个元素上时,我才会在 Firefox (31) 中看到一些伪像。

请参阅下面的 jsfiddle 链接: http://jsfiddle.net/8ap92j7z/1/

    <span class="big-icon">
    <a href="#">
        <span class="fa-stack fa-lg">
            <i class="fa fa-circle fa-stack-2x"></i>
            <i class="fa fa-sitemap fa-stack-1x fa-inverse"></i>
            <span class="text">Sitemap</span>
        </span>
    </a>
</span>

我做错了什么以及如何解决这个问题?

最佳答案

试试 .big-icon {text-decoration: none;} - jsFiddle Example

关于css - 带文本的 Fontawesome 图标的垂直居中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25550670/

相关文章:

jquery - CSS 中的事件选项卡

html - 如何制作径向技能栏

jquery - Bootstrap 数据表样式

html - 为什么我的图标字体仅在 Windows 8 上的 IE10 中不起作用?

html - 浏览器正在加载两张图片——一张用于 srcset,一张用于 src(Chrome 41 等)

python - 连接中止错误 : [WinError 10053] An established connection was aborted by the software in your host machine with GeckoDriver and Firefox

html - 输入形式中span size的固定长度

html - 在 HTML5 中是否必须有 <section> 的标题

javascript - 我可以在 javascript 函数中使用 scriplet 吗?

java - 如何修复firefox浏览器中的ajax调用,但在chrome浏览器中工作正常