不止一个 css 规则

问题描述

我有

@media all and (-ms-high-contrast:none),(-ms-high-constrast:avtive) { css code here }

我也希望它通过:

@media only screen and (max-width:768px){}

这在 CSS 中可行吗

解决方法

妮可舒尔茨:

不确定,但这行不通?

@media only screen and (max-width:768px) and (-ms-high-contrast:none),(-ms-high-constrast:avtive) { css code here }