css - 横向媒体查询
问题描述
我有一个关于 lansdscape 位置的媒体查询 css 的问题。
当涉及到非常小的高度时,我确实很难做出完全负责任的项目,因为移动设备:375px、320px 等,此时一切都下降了。
包含所有这样的 Iphone 媒体查询是否正确?
@media only screen
and (min-device-width: 375px)
and (max-device-width: 812px)
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: landscape),
screen
and (min-device-width: 414px)
and (max-device-width: 736px)
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: landscape),
screen
and (min-device-width: 375px)
and (max-device-width: 667px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape),
screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape),
screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) { }
解决方案
我很抱歉。看来我终于找到了适用于移动设备所有横向位置的媒体查询。
@media only screen
and (min-device-width: 280px)
and (max-device-width: 812px)
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: landscape){}
推荐阅读
- android - 从命令行设置 android 应用程序版本
- python - 针对变量获取 SyntaxError
- qt - QML 动态调节 c++
- python - 如何组合 2 个数据集来制作这个数据集?
- powerbi - 计算某些列的差和乘的SUM
- python - 在python中接受cookie后抓取网页
- android-jetpack-compose - jetpack compose:滚动到底部侦听器(列表末尾)
- flutter - 在颤动中使用底部导航栏时如何传递列表视图数据?
- auth0 - Auth0 - 使用不同的配置文件登录 1 个租户中的 2 个应用程序
- docker - 为 Kafka-MQTT-MongoDB 运行 docker 容器;LEADER_NOT_AVAILABLE 用于 kafka 主题