本文介绍了三星Galaxy S5媒体查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了一些搜索,并尝试了一些不同的方法,但是对于我来说,我似乎无法专门针对三星Galaxy S5.在网站上工作时,我只是在玩一些事情,但我尝试的目标似乎都不是特定设备.

I've done a bit of searching and have tried a few different things, but for the life of me I cannot seem to specifically target the Samsung Galaxy S5. I'm just playing around with a few things while working on a site but nothing I try seems to target the specific device.

这是我到目前为止尝试过的:

Here is what I have tried so far:

@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*/}

*注意:我只包含了"landscape"特定的代码,但是我尝试了不包含"landscape"和"portrait"的代码,但是仍然无法正常工作.

*Note: I've only included "landscape" specific code, but I have tried it without that and with "portrait", but it still doesn't work.

任何帮助将不胜感激.

推荐答案

@media screen and (device-width: 360px) and (device-height: 640px) and (-webkit-device-pixel-ratio: 3)

根据.

希望有帮助.

欢呼

这篇关于三星Galaxy S5媒体查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-22 08:00