似乎您的某些 CSS 规则会相互覆盖。
里面有/wp-content/themes/paulinakozan/fonts/fontello/css/fontello.css
一条规则:
[class^="icon-"]::before, [class*=" icon-"]::before {
display: inline-block;
font-family: "fontello"; // <-- IMPORTANT LINE!
font-style: normal;
font-variant: normal;
font-weight: normal;
line-height: 1em;
margin-left: 0.2em;
margin-right: 0.2em;
text-align: center;
text-decoration: inherit;
text-transform: none;
width: 1em;
}
但是您的站点加载了另一个 css:/wp-content/plugins/modula-best-grid-gallery/scripts/modula.css?ver=4.4.2
并且还有另一个规则:
[class^="icon-"]::before, [class*=" icon-"]::before {
font-family: "modula-icons" !important; // <-- ANOTHER IMPORTANT LINE!
font-style: normal !important;
font-variant: normal !important;
font-weight: normal !important;
line-height: 1;
text-transform: none !important;
}
第二个 font-family 定义modula-icons
被定义为 !important,所以它战胜了fontello
! 这就是您的图标未正确加载的原因。图标根本不存在于模块图标中。
如果我在 chrome 中打开您的网站并在开发人员工具栏中禁用 modula-icons 规则,则社交图标会正确显示。
