Firefox 中特定最大宽度的 C# 媒体查询

标签 c# css firefox media-queries

我想要得到的是一个媒体查询,它只在 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/

相关文章:

css - 页脚与其上方的内容重叠

html - 在html中并排 float 多个元素

javascript - 在 firefox 上覆盖滚动条

javascript - FirefoxOS 调用 WebActivity "share"不显示 Web Activity 菜单

c# - 更多 C# 自动化到 Excel

c# - 如何正确关闭与 WNetCancelConnection2 的连接?

html - 添加填充以下拉选择事件元素

javascript - 无法更改 TD 的 borderColor

c# - 以编程方式求解模方程

c#foreach循环偶数