【问题标题】:C# media query for specific max-width in firefoxFirefox中特定最大宽度的C#媒体查询
【发布时间】:2018-01-30 13:29:04
【问题描述】:

我想要得到的是一个媒体查询,它只在 Firefox 中触发,并且只在窗口达到 1352px 的最大宽度之前触发。 我试过不同的版本,比如

@@-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
    }

但不幸的是,两者都不起作用。

【问题讨论】:

    标签: c# css firefox media-queries


    【解决方案1】:

    此代码将起作用

    @-moz-document url-prefix()  {
    @media screen and (max-width: 1352px) {
       #timetable {
        transform: scale(0.85) !important
        }
    }
    }
    

    【讨论】:

    • 由于某种原因它实际上没有,但改变媒体屏幕的顺序和 -moz-document 确实如此。尽管如此,我会接受这一点,因为它直接向我指出了解决方案。谢谢:)
    猜你喜欢
    • 1970-01-01
    • 2012-03-19
    • 2017-07-29
    • 2012-07-09
    • 2017-08-23
    • 2015-06-20
    • 2012-12-12
    • 1970-01-01
    相关资源
    最近更新 更多