【发布时间】:2013-01-21 05:44:17
【问题描述】:
我正在为客户构建一个基于模板的网站。该模板使用 Bootstrap 框架,该框架将 Glyphicons 用于某些图像。如果我在 Chrome 中访问 BootStrap 主页,Glyphicons 似乎工作正常。
这是不适合我的页面: http://www.laidoffsoftware.com/Contact.aspx
如果您查看地址部分下的图标,您应该会看到电话号码旁边的电话图标和电子邮件地址旁边的信封图标。在 FF、IE 或 Opera 中,这看起来不错。然而,在 Chrome 中,图标已损坏,它们是一些奇怪的符号。
我不知道为什么会这样?
感谢任何想法。
更新:Chrome 控制台现在显示:
键“width”的视口参数值“100%”被截断为其数字前缀。
联系人.aspx:8 资源解释为字体,但使用 MIME 类型字体/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";}
【问题讨论】:
-
应该是手机。看这张图,没错i.imgur.com/M3hlvYs.jpg
标签: css google-chrome twitter-bootstrap glyphicons