css - 三星 Galaxy S5 媒体查询

标签 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*/}

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

如有任何帮助,我们将不胜感激。

最佳答案

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

根据 source .

希望对您有所帮助。

干杯

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

相关文章:

html - ul 标签 html 上的边框图像

javascript - 媒体查询在 IE8 中不起作用——即使使用 respond.js 解决方法

css - 媒体查询不适用于我的 WordPress 主题的网站 Logo

samsung-mobile - 错误 : Failed to connect to remote target after update to 4. 0.0.2

android - 在 Samsung Galaxy 设备上隐藏 "NFC Tag type not supported"错误

android - 由于 pcm_read() 在 Galaxy S4 上返回错误 n -5,obtainBuffer 超时

css - 变换后如何进行不透明度过渡

css - 为什么 "display: table-cell"坏了 "position: absolute"

javascript - 当网站加载时,我可以自动将哈希标签添加到 URL 中吗?

css - 媒体查询 : How to target desktop, 平板电脑和手机?