在IE7和IE8中,当使用自定义Web字体时,即使我明确设置,文本有时也会以斜体显示font-style: normal.问题是零星的 - 它会渲染好几次,然后我刷新,一切都是斜体,然后我刷新,它恢复正常.
我正在使用这个@font-face声明:
@font-face {
font-family: 'DIN';
src: url('fonts/DINWeb.eot');
src: url('fonts/DINWeb.eot?#iefix') format('embedded-opentype'),
url('fonts/DINWeb.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'DIN';
src: url('fonts/DINWeb-Bold.eot');
src: url('fonts/DINWeb-Bold.eot?#iefix') format('embedded-opentype'),
url('fonts/DINWeb-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'DIN';
src: url('fonts/DINWeb-Ita.eot');
src: url('fonts/DINWeb-Ita.eot?#iefix') format('embedded-opentype'),
url('fonts/DINWeb-Ita.woff') format('woff');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: 'DIN';
src: url('fonts/DINWeb-BoldIta.eot');
src: url('fonts/DINWeb-BoldIta.eot?#iefix') format('embedded-opentype'),
url('fonts/DINWeb-BoldIta.woff') format('woff');
font-weight: bold;
font-style: italic;
}
Run Code Online (Sandbox Code Playgroud)
那里有一个评论对这篇文章,表示它可能是对的顺序@font-face声明:不过是停止了问题的唯一的事情是完全移除斜体声明. …
css font-face internet-explorer-8 internet-explorer-7 italic
有没有一种简单的方法来测试当前目录是否在 rails 项目中?显然,Rails 本身会对此进行测试,以便使用 rails 子命令(generate、scaffold 等),因此大概有一种直接的方法来测试它。
如果您在 Git repo 中,我正在寻找类似于您将如何测试的东西。