我有一个问题,我的自定义图标字体在谷歌Chrome,只有在Mac。他们在边缘被切断。我已经试过了
你可以在kuyichi.com上看到它(如果你有Chrome和OSX)图标没有边框,圆环是与图标本身。
有谁能解决这个问题吗?
实时视图:http://i.stack.imgur.com/niqcP.png
图标上的图标包:http://i.stack.imgur.com/PwyCm.png
@font-face {
font-family: 'iconfont';
src:url('fonts/iconfont.eot?nr90fm');
src:url('fonts/iconfont.eot?#iefixnr90fm') format('embedded-opentype'),
url('fonts/iconfont.woff?nr90fm') format('woff'),
url('fonts/iconfont.ttf?nr90fm') format('truetype'),
url('fonts/iconfont.svg?nr90fm#iconfont') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="icons-"], [class*=" icons-"] {
font-family: 'iconfont';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icons-knit:before {
content: "\e628";
}
发布于 2015-02-04 17:57:07
尝试将大小信息添加到图标delcaration:
.icons-knit:before {
content: "\e628";
width:40px;
height:40px;
font-size:20px;
}https://stackoverflow.com/questions/28326415
复制相似问题