媒体查询中“屏幕”和“仅屏幕”之间有什么区别?
媒体查询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)
幕布斯6054654