我做了一些搜索并尝试了一些不同的东西,但就我的生活而言,我似乎无法专门针对三星 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/