1

I have a media query telling my footer to have background-color:none only in Landscape. When in portrait it is a transparent red. For some reason it is ignoring the landscape query. Here is a screenshot from inspector.

What could possibly be causing this?

4

1 回答 1

4

The problem isn't with the media query, it's with the background-color declaration. none is not a valid value for background-color, so the declaration gets ignored and the rgba() value used instead.

To remove a background color, use transparent instead of none.

于 2013-03-29T18:36:15.720 回答