小编tej*_*cal的帖子

谷歌素材图标(字体)不会在mozilla Firefox中呈现

我正在尝试使用WAMP将google material-icons添加到我当前在localhost上的本地WordPress项目中.使用CDN,一切都很完美,但我想要一个静态的图标参考.

这是我的目录结构

/
-index.php
-css/
----style.min.css
----MaterialIcons-Regular.eot
----MaterialIcons-Regular.ttf
----MaterialIcons-Regular.woff
----MaterialIcons-Regular.woff2
Run Code Online (Sandbox Code Playgroud)

style.min.css我有:

.material-icons{
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: …
Run Code Online (Sandbox Code Playgroud)

css wordpress firefox font-face material

6
推荐指数
1
解决办法
2166
查看次数

标签 统计

css ×1

firefox ×1

font-face ×1

material ×1

wordpress ×1