响应式布局案例
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了响应式布局案例相关的知识,希望对你有一定的参考价值。
不同分辨率,显示内容不同。
@media only screen and(min-width:1024px){ .content{ Width:1000px; Margin:auto; } } @media only screen and(min-width:400px) and (max-width:1024px){ .rightBox{ Width:0; } .leftBox{width:30%;} .middleBox{width:65%;} } @media only screen and (max-width:400px){ .leftBox, .rightBox, middleBox{ Width:98%; Height:200px; } }
可以用iscroll.js解决ios 不支持fixed的问题
以上是关于响应式布局案例的主要内容,如果未能解决你的问题,请参考以下文章