TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Quickly check the CSS Media Queries that work with your device

21 点作者 wasigh超过 13 年前
CSS media queries are a very powerful tool to create optimized web pages. But which CSS Media query should I use to target my device? This simple page helps to find the right media query.

8 条评论

gcp超过 13 年前
This seems to encourage the sort of thing CSS Media Queries are exactly made to prevent: trying to detect the device and make some special case code for that, instead of thinking about what is possible given the capabilities.<p>It's also broken.<p>The iPad queries should incorrectly trigger on some Android devices, the "SmartPhone" category will be outdated soon. And it fails to detect my desktop.
gburt超过 13 年前
It only detects iPad in portrait, not landscape... Is that correct?
geuis超过 13 年前
"Smartphones (portrait)" even though my iPhone is in landscape.
FreeFull超过 13 年前
Apparently my Thinkpad is an iPad in landscape mode now.
sedev超过 13 年前
There's no alt text for the images - as a result, when I visit in w3m, I can't actually see whether or not the site thinks I'm on a tty.
nielsz超过 13 年前
Thanks for all the feedback! I've resolved the iPad landscape error, will refactor some other mediaqueries in the coming days!
Semiapies超过 13 年前
It thinks my Droid is in landscape mode, even in portrait, and even if I refresh.
rev087超过 13 年前
It seems to fail the iPad detection.