2016-09-16 49 views

回答

1

响应式网格系统通常使用相对定位以及floatflexbox。该flexbox方法可以更容易地扭转网格列的顺序...

/* smaller - mobile widths */ 
.container-flex { 
    display:flex; 
    flex-direction: column-reverse; 
} 

.container-flex>div { 
    background: #eee; 
    width: 100%; 
} 

/* larger widths */ 
@media (min-width: 992px) { 
    .container-flex { 
     flex-direction: row; 
    } 
    .container-flex>div { 
     width: 50%; 
    } 
} 

http://www.codeply.com/go/1Je6BkNrjR

+0

大,我去了Flexbox的解决方案。谢谢! – Beppe