【问题标题】:Glyphicon shopping cart not working in Internet Explorer 7 (IE7)Glyphicon 购物车在 Internet Explorer 7 (IE7) 中不起作用
【发布时间】:2015-02-09 16:16:50
【问题描述】:

在 Internet Explorer 7 中,<span class="glyphicon glyphicon-shopping-cart"></span> 不起作用。

如何让它工作?

【问题讨论】:

  • Bootstrap v3 不支持 IE7。

标签: twitter-bootstrap internet-explorer internet-explorer-7 glyphicons


【解决方案1】:

在你的 CSS 中试试这个。有关此解决方案的更多信息,请参阅 https://github.com/yargalot/glyphicons-bootstrap3-ie7

.glyphicon {
     font-family: 'Glyphicons Halflings';
     font-style: normal;
     text-decoration: inherit;
     line-height: normal;
 }


.glyphicon-shopping-cart {
   zoom: expression( this.runtimeStyle['zoom'] = '1', this.innerHTML = '');
}

您的问题也可能出在浏览器的安全设置上。见Only some glyphicons showing in IEbootstrap 3.2.0 glyphicons are not displaying in internet explorer

希望有帮助

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-07
    • 2011-12-07
    • 2016-08-01
    • 1970-01-01
    • 2011-09-28
    • 1970-01-01
    • 1970-01-01
    • 2017-08-06
    相关资源
    最近更新 更多