【发布时间】:2013-02-16 05:05:47
【问题描述】:
我正在为我的网站使用 Ubuntu 字体,但 Opera 不会在我这样做时呈现页面:
html {
font-family: 'Ubuntu', sans-serif;
}
所以我必须做 css 媒体查询:
/*Chrome*/
@media not all and (-webkit-min-device-pixel-ratio:0) {
html,
button,
input,
select,
textarea {
font-family: 'Ubuntu',sans-serif;
}
}
/*Safari*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
html,
button,
input,
select,
textarea {
font-family: 'Ubuntu',sans-serif;
}
}
/*Opera*/
@media not screen and (1) {
html,
button,
input,
select,
textarea {
font-family: sans-serif;
}
}
问题是现在我不知道如何为 Firefox 实现这个。搜索互联网并没有给我答案。
有什么想法吗?
亲切的问候。
【问题讨论】:
-
这里有一些关于这个问题的信息可能会有所帮助:askubuntu.com/questions/18972/…
标签: firefox css opera media-queries