三星 Galaxy S5 媒体查询

lar*_*lad 5 css media-queries samsung-mobile

我已经做了一些搜索并尝试了一些不同的东西,但就我的生活而言,我似乎无法专门针对三星 Galaxy S5。我只是在网站上工作时玩弄一些东西,但我尝试的任何东西似乎都没有针对特定设备。

这是我迄今为止尝试过的:

@media only screen
(min-resolution: 144dpi)
and (device-width: 1920px)
and (orientation: landscape) {/*styles here*/}

@media screen
(-webkit-min-device-pixel-ratio: 1.5), 
(min-resolution: 144dpi)
and (device-width: 1920px)
and (orientation: landscape) {/*styles here*/}

@media only screen
    (device-width: 1920px)
    and (orientation: landscape) {/*styles here*/}

@media only screen
(min-device-width: 1080px)
and (max-device-width: 1920px)
and (orientation: landscape) {/*styles here*/}
Run Code Online (Sandbox Code Playgroud)

*注意:我只包含了“横向”特定的代码,但我已经尝试过没有它和“纵向”,但它仍然不起作用。

任何帮助将不胜感激。

小智 6

@media screen and (device-width: 360px) and (device-height: 640px) and (-webkit-device-pixel-ratio: 3)
Run Code Online (Sandbox Code Playgroud)

消息人士透露

希望能帮助到你。

干杯


小智 0

这对我有用......

/* Samsung Galaxy S5 Portrait */    
@media screen(-webkit-min-device-pixel-ratio: 2),(min-resolution: 192dpi)and (device-          width: 1440px)and (orientation: portrait){ 
/*Your styles here */
    html{
  display: none;
  }
}
Run Code Online (Sandbox Code Playgroud)