The solution to the problem that the Glyphicons icon does not display in bootstrap3 under IE8

Copy the following css style to the head of the page, and the icon can be displayed.

@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;
}

 

In addition, I also encountered the problem of inexplicable wrapping of div content under IE8. My solution is to specify a longer length for the div, so that it will not wrap.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326472254&siteId=291194637