我让我的网站更多地响应各种设备(平板电脑/手机/等),我想知道如果我使用以下作为指导各种布局宽度,如果最后一个样式表是有效的跨浏览器“全能”,更具体地说IE5/6/7。有谁知道旧版浏览器是否会忽略所有表单并仅包含最后一页?响应CSS与旧版浏览器
<link media="only screen and (max-device-width: 480px)" href="small.css" type= "text/css" rel="stylesheet">
<link media="only screen and (min-device-width: 481px) and (max-device-width: 1024px)" href="medium.css" type="text/css" rel="stylesheet">
<link media="screen and (min-device-width: 1025px)" href="large.css" type="text/css" rel="stylesheet">
OR
@media only screen and (max-device-width: 480px) { /* CSS */ }
@media only screen and (min-device-width: 481px) and (max-device-width: 1024px) { /* CSS */ }
@media only screen and (min-device-width: 1025px) { /* CSS */ }
这将工作,谢谢! – Joe