【发布时间】:2012-01-22 21:16:46
【问题描述】:
媒体查询中screen 和only screen 有什么区别?
<link media="screen and (max-device-width: 480px)" rel="stylesheet" href="m.css" />
<link media="only screen and (max-device-width: 480px)" rel="stylesheet" href="m.css" />
为什么我们必须使用only screen? screen 本身是否没有提供足够的信息来仅为屏幕呈现?
我见过许多使用以下三种不同方式的响应式网站:
@media screen and (max-width:632px)
@media (max-width:632px)
@media only screen and (max-width:632px)
【问题讨论】:
标签: css media-queries