我正在處理響應式設計,但沒有正確地得到它。我需要爲這些設備編寫媒體查詢分辨率如下。什麼是特定設備的媒體查詢?
240 * 320,
240 * 480,
320 * 480,
480×800,
480 * 856
到目前爲止我已經嘗試這些媒體查詢但其衝突
@media only screen and (max-width:240px) { /* cover 240px portrait */}
@media only screen and (min-width:320px) and (orientation : landscape) {/* cover 320px landscape for 240*320 */}
@media only screen and (min-width : 479px) and (orientation : landscape) {/* cover 480px landscape */}
@media only screen and (min-width : 480px) and (orientation:portrait) {/* cover 480px portrait */}
需要一些關於如何寫這些的更多細節? – user2787474