`
xyfkook
  • 浏览: 3319 次
社区版块
存档分类
最新评论

bootstrap3在IE8下Glyphicons图标不显示问题的解决方法

阅读更多

将以下css样式拷贝到页面的head中,图标就可以显示出来了。

@font-face {
  font-family: 'Glyphicons Halflings';

  src: url('../fonts/glyphicons-halflings-regular.eot');
  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
.glyphicon {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: normal;
  line-height: 1;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

 

另外还遇到了在IE8下div内容莫名其妙换行的问题,我的解决方法给div指定较长的长度,这样就不会换行了。

 

分享到:
评论

相关推荐

    BootStrap 图标icon符号图标glyphicons不正常显示的快速解决办法

    bootstrap 图标icon符号图标glyphicons不正常显示解决办法如下所示: 分享供各位参考: 1、在ff/http:的地址栏中输入“about:config”,即进入配置界面。 2、进入后,搜索“security.fileuri.strict_origin_policy”...

    解决bootstrap 3 IE8兼容性问题

    解决bootstrap 3 IE8兼容性问题 研究了下getbootstrap.com网站在IE8下是正常的,他们采取的解决办法是: <!--[if lt IE 9]><script src="../assets/js/ie8-responsive-file-warning.js"></script><![endif]--> <!--...

    bootstrap3 支持ie8

    bootstrap3 支持ie8,花了好长时间进行总结的,不过部分的radionbutton和checkbox还没删除,在想办法保留其样式,看看以后有没有办法解决

    本地Bootstrap文件字体图标引入却无法显示问题的解决方法

    主要为大家详细介绍了本地Bootstrap文件字体图标引入却无法显示问题的解决方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下

    详解Bootstrap glyphicons字体图标

    字体图标在下载的Bootstrap的fonts文件夹中。 .glyphicon { position: relative; top: 1px; display: inline-block; font-family: 'Glyphicons Halflings'; -webkit-font-smoothing: antialiased; fo

    Bootstrap5 图标库 bootstrap-icons

    Bootstrap5 图标库 bootstrap-icons

    bootstrap-ie8_ie9.rar

    真正解决bootstrap在ie8、ie9下栅格不兼容问题

    BootStrap glyphicons 字体图标实现方法

    详解Bootstrap glyphicons字体图标 先给大家说下什么是字体图标? 字体图标是在 Web 项目中使用的图标字体。虽然,Glyphicons Halflings 需要商业许可,但是您可以通过基于项目的 Bootstrap 来免费使用这些图标。 ...

    bootstrap-ie8.rar

    bootstrap 与IE8不兼容,经过无数次尝试,终于真正解决了不识别栅格问题

    ie8缓存+bootstrap结合ie8的jquery版本

    1.解决ie8缓存 2.bootstrap结合ie8的jquery版本 3.ie8不支持bootstrap的部分功能

    Bootstrap glyphicons-halflings-regular fonts资源

    boostrap-select.js 使用缺少font字体文件,下载,引入工程,boostrap.min.js 内搜索相关路径:注意更改路径正确。

    Bootstrap 字体图标(Glyphicons)

    Bootstrap 字体图标(Glyphicons) @font-face { font-family:’Glyphicons Halflings’;src:url(https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/fonts/glyphicons-halflings-regular.eot);src:url(//maxcdn....

    Bootstrap 图标库下载

    Bootstrap Icons:Bootstrap 有史以来第一次拥有自己的图标库,并且是专门为 Bootstrap 的组件和文档定制开发的。 Bootstrap Icons 的设计初衷是与 Bootstrap 组件配合使用,从表单到导航组件等。Bootstrap Icons ...

    Bootstrap带图标的按钮样式

    这是一款基于bootstrap的带图标的按钮样式。这组按钮在bootstrap按钮的基础上,通过附加的HTML元素来构建小图标,并通过CSS3来制作鼠标hover动画效果。

    BootStrap glyphicon图标无法显示的解决方法

    如果不注意bootstrap引入css和fonts的规范,则可能会导致bootstrap 在显示glyphicon图标时无法正常显示,显示为方框。 此时可搜索bootstrap.css中的.glyphicon,可发现其大约上下10行左右有引入字体的URL,如下所示...

Global site tag (gtag.js) - Google Analytics