登录 | 注册 | FAQ
Anonymous

@font-face no Chrome

+ 发表回复

2 篇帖子 分页: 1 / 1


@font-face no Chrome

heitorcaldeira » 周二 2月 25, 2014 1:30 am

Olá pessoal, estou com um problema nas fontes do site que estou fazendo.
No IE e no Firefox elas mantém um padrão no tamanho. Já no Chrome, elas ficam esticadas como na imagem, alterando assim os espaçamentos.
O font-face está assim..

@font-face {
font-family: 'AvenirLTS-Medium';
src: url('../fonts/AvenirLTStd-Medium.eot');
src: url('../fonts/AvenirLTStd-Medium.eot?#iefix') format('embedded-opentype'),
url('../fonts/AvenirLTStd-Medium.woff') format('woff'),
url('../fonts/AvenirLTStd-Medium.ttf') format('truetype'),
url('../fonts/AvenirLTStd-Medium.svg#AvenirLTS-Medium') format('svg');
font-weight: normal;
font-style: normal;
}

Alguém ja passou por isso? Obrigado!

附件

  1. Untitled-1.jpg (169.87 KiB) 被下载 1354 次

头像

heitorcaldeira

  • 帖子: 1
  • 注册: 周二 2月 25, 2014 1:27 am

Re: @font-face no Chrome

XainPro » 周二 2月 25, 2014 8:08 am

usar CSS Reset

代码: 全选
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
头像

XainPro

  • 帖子: 3933
  • 注册: 周五 2月 17, 2012 8:10 pm


+ 发表回复

分页: 1 / 1