具有多组条件的屏幕媒体

问题描述 投票:0回答:0

嗨,

我想要有同样适用于以下条件的 css 规则

@media (max-width:860px) screen and (orientation:landscape) OR (max-width:860px) and (orientation:portrait) and (min-height:950px) 

但我不确定如何使用正确的语法。我尝试了以下方法:

@media (max-width:860px) screen and (orientation:landscape), (max-width:860px) and (orientation:portrait) and (min-height:950px) 

但是没用。这里的正确语法是什么?

谢谢。

css screen-orientation
© www.soinside.com 2019 - 2024. All rights reserved.