我的网站有 2 种不同的样式表,一种用于台式机,另一种用于:hover
禁用所有功能的手机和平板电脑。我尝试使用引导媒体查询定义,但桌面会在某些高端手机上显示,我该如何解决?
这是我现在的定义:
<!-- IPHONE 4-->
<link rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" href="/styles-basic.css" />
<!-- IPHONE 5-->
<link rel="stylesheet" media="screen and (device-aspect-ratio: 40/71)" type="text/css" href="/styles-basic.css" />
<!-- PHONES E TABLETS -->
<link rel="stylesheet" href="/styles-basic.css" media="screen and (max-width:979px)">
<!-- DESKTOP -->
<link rel="stylesheet" href="/styles.css" media="screen and (min-width:978px)">