gpt4 book ai didi

javascript - 目标手机

转载 作者:行者123 更新时间:2023-11-30 13:05:46 25 4
gpt4 key购买 nike

我想像这样使用 CSS 媒体查询来定位移动设备:

@media (min--moz-device-pixel-ratio: 1.5),
(-o-min-device-pixel-ratio: 3/2),
(-webkit-min-device-pixel-ratio: 1.5),
(min-resolution: 1.5dppx) {

/* your retina rules here */
}

手机的正确设置是什么?假设我想避免定位平板电脑和大屏幕,而只定位手机?

最佳答案

引自此answer :

min-width: 320px  // smartphones, iPhone, portrait 480x320 phones
min-width: 481px // portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide.
min-width: 641px // portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 and 854x480 phones
min-width: 961px // tablet, landscape iPad, lo-res laptops ands desktops
min-width: 1025px // big landscape tablets, laptops, and desktops
min-width: 1281px // hi-res laptops and desktops

关于javascript - 目标手机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15759638/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com