我正在使我的网站对各种设备(平板电脑/移动设备/等)的响应速度更快,我想知道如果最后一个样式表是有效的跨浏览器“包罗万象”,我是否使用以下内容作为各种布局宽度的指南,更具体地说是 IE5/6/7。有谁知道旧版浏览器是否会忽略所有工作表并仅包含最后一张?
<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">
或者
@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 */ }