Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在我的浏览器中欺骗媒体?具体来说,如果我有一个包含与桌面浏览器不匹配的媒体查询的样式表,我该如何测试它们?
您可以@media print通过打印测试页或几乎任何您能想到的内容来测试您可以使用Google Chrome 的模拟要求 Inspect Element -> Settings -> Overrides -> Emulate CSS Media
@media print
Inspect Element -> Settings -> Overrides -> Emulate CSS Media