執行我有CSS媒體查詢這樣媒體查詢:智能手機的格局正在爲iPad
<!-- Common Styles sheet for desktops/tablets/iPads -->
<link rel="stylesheet" href="css/styles.css" />
<link rel="stylesheet" href="css/smartphone.css" media="only screen and (min-device-width : 20px) and (max-device-width : 480px)" />
<link rel="stylesheet" href="css/smartphone-landscape.css" media="only screen and (min-width : 321px)" />
<link rel="stylesheet" href="css/ipad-landscape.css" media="only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape)" />
的問題是,智能手機landscape.css文件也被執行爲iPad。我怎樣才能防止它?所以智能手機風景只適用於iPhone的landsacpe模式(以及類似分辨率的設備),但不適用於iPad。