首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >图标在引导程序中消失

图标在引导程序中消失
EN

Stack Overflow用户
提问于 2015-08-05 12:52:00
回答 2查看 841关注 0票数 0

我正在编写一个网站,在那里我创建了4个按钮,链接到我的社交媒体配置文件。我想要包括的图标的研究。社交媒体上的按钮。我用的是Mono社会图标字体。

在这个网站上,你可以看到它应该是什么样子:http://cholleton.ch

这是我使用的代码:

代码语言:javascript
运行
复制
<div class="col-md-3 col-sm-6 col-xs-6">
  <a href="https://be.linkedin.com/pub/thomas-geusens/6/630/809" class="symbol linkedin"></a>
</div>

在main.css中,我添加了

代码语言:javascript
运行
复制
@font-face {
font-family: 'Mono Social Icons Font';
src: url('../fonts/social/MonoSocialIconsFont-1.10.eot');
src: url('../fonts/social/MonoSocialIconsFont-1.10.eot?#iefix') format('embedded-opentype'),
     url('../fonts/social/MonoSocialIconsFont-1.10.woff') format('woff'),
     url('../fonts/social/MonoSocialIconsFont-1.10.ttf') format('truetype'),
     url('../fonts/social/MonoSocialIconsFont-1.10.svg#MonoSocialIconsFont') format('svg');
src: url('../fonts/social/MonoSocialIconsFont-1.10.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

.symbol, a.symbol:before {
font-family: 'Mono Social Icons Font';
-webkit-text-rendering: optimizeLegibility;
-moz-text-rendering: optimizeLegibility;
-ms-text-rendering: optimizeLegibility;
-o-text-rendering: optimizeLegibility;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
-ms-font-smoothing: antialiased;
-o-font-smoothing: antialiased;
font-smoothing: antialiased;
}

.links {
font-size: 10vh;
text-align: center;
}

.linkedin {
background-color: #4488cc;
}

非常感谢你的建议!

托马斯

EN

Stack Overflow用户

回答已采纳

发布于 2015-08-05 13:36:26

我想你只是忘了把文字放在你的链接里,就像这样:

代码语言:javascript
运行
复制
<a href="https://be.linkedin.com/pub/thomas-geusens/6/630/809" class="symbol linkedin">circlelinkedin</a>

看到这个 小提琴

票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31833094

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档