2.5*height"-6ren"> 2.5*height"-当我的 screen-width > 2.5*screen-height 时,我的响应速度很慢我讨厌那些在屏幕上这样做的人,但他们确实存在。 如果是我,你会怎么做?如果您有关于使用媒体查询的最佳实践的-6ren">
gpt4 book ai didi

html - 媒体查询 : "when width>2.5*height"

转载 作者:行者123 更新时间:2023-11-28 04:15:20 25 4
gpt4 key购买 nike

当我的 screen-width > 2.5*screen-height 时,我的响应速度很慢我讨厌那些在屏幕上这样做的人,但他们确实存在。

如果是我,你会怎么做?如果您有关于使用媒体查询的最佳实践的强大文档,它也可能会有所帮助。作为一名开发者,我想花尽可能少的时间来对抗每一种设备。

谢谢!!

最佳答案

你没有说明到目前为止你尝试了什么以及失败的原因,但你可以使用 aspect-ratio/min-aspect-ratio/max -纵横比:

@media screen and (max-aspect-ratio: 5/2) { 

}

关于html - 媒体查询 : "when width>2.5*height",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42511446/

25 4 0
文章推荐: html - 简单的 XSLT 问题 : setting inner HTML node attribute values such as
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com