Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用波斯语的 opencart,我决定更改我网站的字体。首先,我尝试更改 css 中“body”元素中的字体样式。但不幸的是,它没有奏效。一切都做得很仔细,我使用了“font-face”,上传了字体等等。但它没有用,我在主 css 文件中做了这个。 * { 字体家族:某事; 在我这样做之后,网站中的所有图片都失去了质量,并且没有显示任何图标 ......
我该如何解决它...?问候
未显示图标,因为您正在覆盖字体系列。
看看 Glyphicons 或 Font-Awesome
http://fontawesome.io/
http://glyphicons.com/
他们使用字体来打印图标。
对于我不知道的图像质量,请尝试限制字体覆盖的范围。如果您将 font-familty 设置为 img 标签,可能是浏览器上的一个错误(我猜)