Android 可以使用@fontface 吗?如果是这样,谁能解释我下面哪里出了问题?
@font-face {
font-family: 'BloklettersPotlood';
src: url('fonts/Blokletters-Potlood-webfont.eot');
src: url('fonts/Blokletters-Potlood-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/Blokletters-Potlood-webfont.woff') format('woff'),
url('fonts/Blokletters-Potlood-webfont.ttf') format('truetype'),
url('fonts/Blokletters-Potlood-webfont.svg#BloklettersPotlood') format('svg');
font-weight: normal;
font-style: normal;
}
干杯 保罗
最佳答案
Android 确实支持@font-face。我使用相同的语法并且效果很好(无处不在)。 您是否尝试过使用其他字体?
顺便说一句。如果您尝试将字体应用于任何标题,请确保在 h1/h2/h3/hx 样式声明中设置 font-weight: normal;
。
关于android - 安卓字体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8185567/