我想要得到的是一个媒体查询,它只在 Firefox 中触发,并且只会在窗口达到 1352 像素的最大宽度时触发。 我尝试过不同的版本,例如
@@-moz-document url-prefix() and media only screen and (max-width: 1352px) {
#timetable {
transform: scale(0.85) !important
}
或
@@media only screen and (max-width: 1352px) and (moz-document: url-prefix()) {
#timetable {
transform: scale(0.85) !important
}
但不幸的是两者都行不通。
最佳答案
这段代码可以工作
@-moz-document url-prefix() {
@media screen and (max-width: 1352px) {
#timetable {
transform: scale(0.85) !important
}
}
}
关于Firefox 中特定最大宽度的 C# 媒体查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45814615/