试试这个,它是一个简单的例子。希望它可以帮助你。
@media screen and (min-width: 320px) and (max-width: 480px){
#row{position: relative;color:#fff;}
#B{background:#000;width:100%;height:50px;float:left;position: absolute;top:50px;}
#A{background:#666;width:100%;height:50px;clear:both;position: absolute;top:0;}
#C{background:#aaa;width:100%;height:50px;float:left;position: absolute;top:100px;}
}
对于大屏幕,您不必隐藏任何元素。只是尝试绝对定位它。
@media screen and (min-width:481px) {
#row{position: relative;}
#B{background:#000;width:100%;height:50px;}
#A{background:#666;width:100%;height:50px;}
#C{background:#aaa;width:100%;height:50px;}
}