【发布时间】:2014-02-27 21:05:16
【问题描述】:
我正在研究响应式设计,但没有正确完成。我需要为这些设备的分辨率编写媒体查询。
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 */}
【问题讨论】:
标签: html css responsive-design media-queries