gpt4 book ai didi

css - 我的字形在 Chrome 中坏了 - 为什么?

转载 作者:行者123 更新时间:2023-12-04 05:12:30 28 4
gpt4 key购买 nike

我正在基于模板为客户构建网站。该模板使用 Bootstrap 框架,该框架将 Glyphicons 用于某些图像。如果我在 Chrome 中访问 BootStrap 主页,Glyphicons 似乎工作正常。

这是对我不起作用的页面:
http://www.laidoffsoftware.com/Contact.aspx

如果您查看“地址”部分下的图标,您应该会在电话号码旁边看到一个电话图标,在电子邮件地址旁边看到一个信封图标。在 FF、IE 或 Opera 中,这看起来不错。然而,在 Chrome 中,图标已损坏,它们是一些奇怪的符号。

我不知道为什么会这样?

任何想法表示赞赏。

更新:Chrome 控制台现在显示:

键“width”的视口(viewport)参数值“100%”被截断为其数字前缀。

联系人.aspx:8
资源解释为 Font,但使用 MIME 类型 font/x-woff 传输:“http://www.laidoffsoftware.com/font/fontawesome-webfont.woff”。

联系人.aspx:290
资源解释为字体,但使用 MIME 类型 image/svg+xml 传输:“http://www.laidoffsoftware.com/font/IcoMoon.svg”。

@font-face {
font-family: 'IcoMoon';
src: url('../font/IcoMoon.eot');
src: url('../font/IcoMoon.eot?#iefix') format('embedded-opentype'),
url('../font/IcoMoon.svg#IcoMoon') format('svg'),
url('../font/IcoMoon.woff') format('woff'),
url('../font/IcoMoon.ttf') format('truetype');
font-weight: normal;
font-style: normal; } /* Use the following CSS code if you want to use data attributes for inserting your icons */ [data-icon]:before {font-family: 'IcoMoon';
content: attr(data-icon);
speak: none; }

/* Use the following CSS code if you want to have a class per icon */ [class^="icon-"]:before, [class*=" icon-"]:before {font-family: 'FontAwesome', 'IcoMoon';
font-style: normal;
speak: none; } .icon-home:before {content: "\0021";} .icon-home-2:before {content: "\0022";} .icon-home-3:before {content: "\0023";} .icon-newspaper:before {content: "\0024";}

最佳答案

看起来这是 WebKit 中的一个错误,已在此处报告:https://bugs.webkit.org/show_bug.cgi?id=76152

此外,GlyphIcons 的创建者表示他已意识到此问题,并将尝试在下一个版本中使用不同的 unicode 值来解决此错误:https://twitter.com/glyphicons/status/423426740128854016

关于css - 我的字形在 Chrome 中坏了 - 为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14722088/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com