Quantcast
Channel: Forum Pasja Informatyki - Najnowsze pytania
Viewing all articles
Browse latest Browse all 65225

Fontello.css nie działa na localhost

$
0
0

Witam 

Na początku chciałem zaznaczyć ,że widziałem post dotyczący tego samego tematu jednak w moim przypadku rozwiązanie nie pomaga.

Problem polega na tym, że używając localhosta ikony z fontello są pokazywane, ale nie reagują na żadne zmiany w pliku fontello.css. Próbowałem też zmienić styl w pliku php ,ale rezultat jest taki sam.Otwierając plik bez użycia localhosta wszystko działa dobrze, strona reaguje na zmiany w css.

W taki sposób podłączam pliki css:

<link rel="stylesheet" href="style.css" type="text/css">
<link rel="stylesheet" href="css/fontello.css" type="text/css">

A tak wygląda plik fontello.css

@font-face {
   font-family: 'fontello';
  src: url('../font/fontello.eot?62023960');
  src: url('../font/fontello.eot?62023960#iefix') format('embedded-opentype'),
       url('../font/fontello.woff2?62023960') format('woff2'),
       url('../font/fontello.woff?62023960') format('woff'),
       url('../font/fontello.ttf?62023960') format('truetype'),
       url('../font/fontello.svg?62023960#fontello') format('svg');
  font-weight: normal;
  font-style: normal;
}
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
/*
@media screen and (-webkit-min-device-pixel-ratio:0) {
  @font-face {
    font-family: 'fontello';
    src: url('../font/fontello.svg?15645400#fontello') format('svg');
  }
}
*/
 
 [class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "fontello";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: .2em;
  text-align: center;
  /* opacity: .8; */
 
  /* For safety - reset parent styles, that can break glyph codes*/
  font-variant: normal;
  text-transform: none;
 
  /* fix buttons height, for twitter bootstrap */
  line-height: 1em;
 
  /* Animation center compensation - margins should be symmetric */
  /* remove if not needed */
  margin-left: .2em;
 
  /* you can be more comfortable with increased icons size */
  /* font-size: 120%; */
 
  /* Font smoothing. That was taken from TWBS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
 
  /* Uncomment for 3D effect */
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
 
.icon-music:before{content: '\e800';font-size:200px; color:red; } /* '' */
.icon-star-half:before{content: '\e801'; } /* '' */
.icon-star:before{content: '\e802'; } /* '' */
.icon-heart:before{content: '\e803'; } /* '' */
.icon-star-empty:before{ content: '\e804'; } /* '' */
.icon-video:before{content: '\e805'; } /* '' */
.icon-plus-squared:before{ content: '\f0fe'; } /* '' */
.icon-gamepad:before{content: '\f11b';font-size:50px; } /* '' */
.icon-help:before{content: '\f128'; } /* '' */

  plik fontello.css na 100% znajduję się w : plikzestrona/css/fontello.css


Viewing all articles
Browse latest Browse all 65225

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>