【发布时间】:2017-08-15 14:04:06
【问题描述】:
一直在阅读有关类似主题的一些修复方法。
尝试在除 IE 和 edge 之外的所有浏览器上使用 lato 字体及其渲染效果。
我一直在阅读 IE 不使用 woff2?
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'),
url(https://fonts.gstatic.com/s/lato/v13/UyBMtLsHKBKXelqf4x7VRQ.woff2)
format('woff2');
unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-
2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'),
url(https://fonts.gstatic.com/s/lato/v13/1YwB1sO8YE1Lyjf12WNiUA.woff2)
format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC,
U+2000-206F, U+2074, U+20AC, U+2212, U+2215;
}
【问题讨论】:
-
为什么不直接通过谷歌字体导入字体?它已经拥有你需要的所有东西。只需在需要的地方通过 font-family 使用它。
-
不幸的是无法正常工作,已添加@import url('fonts.googleapis.com/css?family=Lato:400,700');到我的 CSS 文件并调用 font-family: 'Lato', sans-serif;但是它似乎指向 arial
-
控制台有什么错误吗?
标签: css internet-explorer fonts microsoft-edge