gpt4 book ai didi

css - 三星 Galaxy Tab 4 - 7 英寸媒体查询

转载 作者:行者123 更新时间:2023-12-04 22:24:41 26 4
gpt4 key购买 nike

我将我的应用程序定位为各种 Android 平板电脑设备。主要是10寸和7寸三星和Nexus。

要定位三星 Galaxy Tab 7 英寸,请使用以下媒体查询,1024x600 像素。它在 Galaxy tab 2, 3 of 7inch 中工作正常。但不适用于 Galaxy Tab 4 7 英寸。

@media only screen and (max-width: 1024px) and (orientation : landscape)
{ }

三星 Galaxy Tab 4.0 7 英寸使用以下屏幕规范。三星 Galaxy 4.0 10.1 英寸型号 - SM-T530NYKAXAR 也是如此。因此,在我的 7 英寸 Galaxy Tab 4 上,它使用了 Samsung Galaxy tab 4.0 10 英寸的媒体查询并加载了奇怪的 HTML 页面。

如何通过媒体查询定位 Samsung Galaxy Tab 4.0 7inch。

屏幕规范:

物理尺寸:7 英寸

分辨率:1280x800(横向)

像素密度:216 ppi

谢谢。

最佳答案

我已经创建了它并在设备上对其进行了测试,它似乎具有高度针对性并且有效。

@media only screen 
and (min-device-width: 800px)
and (max-device-height: 1280px)
and (min-resolution: 192dpi)
and (-webkit-device-pixel-ratio:2)
and (orientation : portrait)

{
.galaxy {background-color:red;}
.onlygalaxyportrait {display:block !important; background-color:green;}



}

@media only screen
and (min-device-width: 1280px)
and (max-device-height: 800px)
and (min-resolution: 192dpi)
and (-webkit-device-pixel-ratio:2)
and (orientation : landscape)

{
.galaxy {background-color:yellow;}
.onlygalaxyland {display:block !important; background-color:orange;}






}

关于css - 三星 Galaxy Tab 4 - 7 英寸媒体查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25375313/

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